Re: [Gambas-user] File i/o problems

2009-11-23 Thread BenoƮt Minisini
> 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) **

[Gambas-user] File i/o problems

2009-11-23 Thread richard terry
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: 'typ