I'm wanting to learn how to do binary files, but the FAQ example is a bit too complicated for me to follow. Are structs absolutely necessary for binary files?
All I want to do is create a random-access file and use the data in the file as an array. I don't want to load any of it into a pointer/structure/array, I just want to manipulate the data directly.
Does my question make sense? I'm trying to upgrade my previous program:
So that I use a binary file instead of a pointer.
Are there any basic examples for binary files that show how to:
2) write the initial data
3) move around in it to access different records
4) change data in a "random" record