Page 1 of 1

Read/Write Structured Linked Lists

Posted: Fri Feb 22, 2008 7:21 pm
by doctorssh
Hello,

Suggestions please for the PureBasic function(s) to READ/WRITE structured linked list data to/from disk (Windows XP). The examples in Willoughby's book (Chap 7) deal with standard data types. Must I convert to string data and use the functions WriteStringN() and ReadString() functions?

Thanks.

Posted: Fri Feb 22, 2008 7:27 pm
by Kaeru Gaman
you can use any Write/Read function, there is
WriteByte
WriteCharacter
WriteData
WriteDouble
WriteFloat
WriteLong
WriteQuad
WriteString
WriteStringFormat
WriteStringN
WriteWord

you can write a Procedure that writes your struct to disk field by field

Posted: Fri Feb 22, 2008 8:33 pm
by hellhound66
Removed.

Posted: Sat Feb 23, 2008 12:50 pm
by tinman
These might help you. You would need to go through the list and write each structure in turn.

http://www.purebasic.fr/english/viewtop ... dstructure
http://www.purebasic.fr/english/viewtop ... dstructure