Smooth, and I mean smoooth, File I/O
Posted on 1998-06-19
If I wanted to be able to write / read information to a text file, how would I do it? An important feature would be the ability to add / delete items and have the size of the file shrink / grow automatically.
I have used INI files for a lot of my storage up until now, and they are okay, but not really what I want.
I've read a little bit here and there about Streams and this might be what I'm looking for.
If someone could give me a clear, concise code example that demonstrates how to read info, modify that info (add, edit delete), the write that info out to the text file, that would be super.
I am not interested in using INI files or a database. Streams, Linked Lists, Custom data structures, etc are more what I'm looking for.
Thanks for helping a beginner.