How to store linked lists structures in a file ?
But i wanted to store them in a Binary File, so that I don't need to input data again. I'm facing this problem since yesterday. Please, Help me OUT !!
Member • Jan 14, 2012
Administrator • Jan 14, 2012
Member • Jan 15, 2012
Member • Jan 15, 2012
Not getting what you are exactly asking for ????ashbeezoneConsider a Tree, whose every parent node can have N child nodes. It's easy to store in structures during the execution of program For that I've implemented Linked Lists.
But i wanted to store them in a Binary File, so that I don't need to input data again. I'm facing this problem since yesterday. Please, Help me OUT !!
Member • Jan 30, 2012
Kinda Helpful suggestion.eternalthinkerWhich language are you using? Many languages have libraries which enable you to dump whole datastructures to a file and re-build the datastructure from such a dump. In my knowledge, Java and Python has it. Just search on this conceptt for your language.
This is the straightforward way. If such techniques are not inbuilt, write a function yourself to dump the datastructure into a file. Create your own notation to represent the data structure contents. Be creative and optimal in this 😀
Member • Jan 30, 2012
Well, I'm trying to do in C/C++. For example, consider a simple data structure for a Linked List Node.K!r@nS!nguNot getting what you are exactly asking for ????
Can you mail me the code @ #-Link-Snipped-#
so that i can try to help you out if possible in JAVA.
I think the HINT which I've mentioned above is way better useful.The_Big_KWhy don't you simply upload / post your problem code here?
Member • Jan 30, 2012
Member • Jan 30, 2012