Read/Write Structured Linked Lists

Just starting out? Need help? Post your questions and find answers here.
doctorssh
New User
New User
Posts: 5
Joined: Sat Feb 09, 2008 7:57 am
Location: Oregon, USA

Read/Write Structured Linked Lists

Post 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.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post 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
oh... and have a nice day.
hellhound66
Enthusiast
Enthusiast
Posts: 119
Joined: Tue Feb 21, 2006 12:37 pm

Post by hellhound66 »

Removed.
Last edited by hellhound66 on Wed Mar 19, 2008 11:36 pm, edited 1 time in total.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post 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
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Post Reply