hello every body
i want to know how to save a linked list int a text file and how to load a file in a linked list ??
any one can help me and give me a simple example code
thanks in advance
sara90
0
Newbie Poster
Recommended Answers
Jump to PostToo many possible options to say the best way. Here is one way: For writing:
write a header into the file, something like "<singly linked list follows>"
iterate through the linked list writing one item per line
write a footer into the file, something like "<end of singly linked list>"
…
All 3 Replies
griswolf
304
Veteran Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
template<>
37
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.