[Gambas-bugtracker] Bug #1696: Write of a string[] to a MEMORY FILE only save or reads first element, lof() always returns zero on memory file

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Mon Dec 16 13:22:04 CET 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1696&from=L21haW4-

Comment #4 by Benoît MINISINI:

To know how many bytes were written, you can do :

hFile = OPEN MEMORY mypointer FOR WRITE
WRITE #hFile, ...
len = Seek(hFile)

If you want the normal serialization process (no null byte <=> end of string), you should serialize to a string.




More information about the Bugtracker mailing list