[Gambas-user] File i/o problems
Benoît Minisini
gambas at ...1...
Mon Nov 23 23:29:29 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
>
The syntax of READ and WRITE has changed since revision 2344.
Read the wiki documentation about READ and WRITE for the details.
And I suggest you subscribe to the gambas-devel-svn mailing-list so that you
can follow what changes in the development version day after day.
Regards,
--
Benoît Minisini
More information about the User
mailing list