[Gambas-user] write a binary file

Jochen Georges jochen.georges at ...22...
Wed Feb 12 12:52:21 CET 2003


On Wednesday 12 February 2003 00:02, Benoît Minisini wrote:

hi benoit

i write just to you because i do not know if it is ok to send an 
attachement to the list.
i hope it is ok this way.

> PUBLIC SUB WriteTo(hFile AS File)
>   WRITE #hFile, Field1
>   WRITE #hFile, Field2
>   ...
>   WRITE #hFile, FieldN
> END

it seems to work.
i wrote a method ReadFrom(hFile AS File) also.
it runs without any error but it does not seem to set the values 
right.
if i try to display the values i got an error:
"unknown symbol brand in Class CCar"

can you have a look at it?

thank you

beste gruesse
jochen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: savebinfile.tgz
Type: application/x-gzip
Size: 2916 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20030212/c1598668/attachment.bin>


More information about the User mailing list