Hi all,
I'm just going to get right down my question since the exact program details are unnecessary and complicated.
Basically, I have a database handler that writes to a file certain data. Since I will have to be able to remove, add, and edit each piece of data, I decided to implement a singly linked list. Each node contains the elements of data that I need.
Now, this is where I get confused and was hoping someone could offer some advice on:
1) First of all, how in the world can I write a linked list to a file? Is this even possible? I'm not sure I fully understand what a "file" EXACTLY is.
2) If the above is possible, how can I access the file and thus the linked list inside of it?
3) Should I have a separate source code for my node and list implementations ?
Much thanks in advance!
I'm just going to get right down my question since the exact program details are unnecessary and complicated.
Basically, I have a database handler that writes to a file certain data. Since I will have to be able to remove, add, and edit each piece of data, I decided to implement a singly linked list. Each node contains the elements of data that I need.
Now, this is where I get confused and was hoping someone could offer some advice on:
1) First of all, how in the world can I write a linked list to a file? Is this even possible? I'm not sure I fully understand what a "file" EXACTLY is.
2) If the above is possible, how can I access the file and thus the linked list inside of it?
3) Should I have a separate source code for my node and list implementations ?
Much thanks in advance!
Comment