Does anyone have a nice little algorithm for storing and loading stuff from a file using direct file i/o in Microsoft Visual C++.
Does anyone have a nice little algorithm for storing and loading stuff from a file using direct file i/o in Microsoft Visual C++.
What kind of algorithm? You have to be more specific.
If you know the offset, use seekg() to go there, for example if you want the tenth object of the type OBJECT, use seekg((10 - 1) * sizeof(OBJECT), ios::beg).
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.