Does anyone have a nice little algorithm for storing and loading stuff from a file using direct file i/o in Microsoft Visual C++.
Printable View
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).