| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Linked Lists |
I have just finished teaching myself the basics of C and I am trying to
write a simple database program for DOS. In order to store the data so it
can easily be searched and sorted, I'm using linked lists for data
referencing.
The problem I have is this, what is the best method of saving the
data to disk and/or reading it. I'm pretty sure that it isn't a good idea
to save the pointer info on the disk and then reload it because DOS
mightn't allocate it the same space. Should I save each item of the
structure individually or should I create a new structure just for storing
the info on the disk or what?
In case it helps, this is the structure I am using:
struct book{
char title[40];
char author[25];
int year;
char type_1;
char type_2;
struct book *next;
}
Not too complicated but sufficient to challenge my programming
skills ;)
Any help would be greatly appreciated,
Thanks in advance,
Geoff.
--- Maximus/2 3.00
* Origin: Decadence BBS (3:632/103)SEEN-BY: 50/99 620/243 623/630 632/103 348 360 998 633/371 634/384 388 SEEN-BY: 635/301 502 503 544 727 639/252 711/401 409 410 413 430 510 808 809 SEEN-BY: 711/932 934 712/515 713/888 714/906 800/1 7877/2809 @PATH: 632/348 635/503 50/99 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.