How to save a link list to file

Status
Not open for further replies.

asemnor

Junior Member level 3
Joined
Mar 8, 2005
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,509
I am writing an application program in C++ to check inventory.
My main problem is how to save the link list to file.Please help!!
 

Very easy

typdef struct
{
char data1 ;
char data2;
....
} mylist ;


mylist listbuf[NOOF_LISTS];

yourstorefunction(char* liststart_pointer, int length)


invoke your function as

yourstorefuntion(listbuf, sizeof(mylist) * NOOF_LISTS);

store everything byte by byte starting from from
first byte of listbuf record .
 

i think inventory should make use of database system for better data management.

you can try free database software: mysql.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…