[Gambas-user] File i/o problems

richard terry rterry at ...1946...
Mon Nov 23 23:00:05 CET 2009


Wonder if anyone could tell me why this comes up with the error
'type mismatch, wanted byte got a string'

Image path would be something like /tmp/myimage.png

Dim hFile As Stream

hfile = Open ImagePath For Input

 While Not Eof(hFile)
      Read #hFile, buffer, Lof(hFile) **dies here 
with:

'type mismatch, wanted byte got a string'

Thanks in anticipation.

Regards

Richard




More information about the User mailing list