struct GameData
{
// game data in here...
};
// .. standard header files
#include <fstream>
using namespace std;
int main()
{
// ....
GameData gamedata;
ofstream FILE_OUTPUT;
//...
FILE_OUTPUT.write( "game.dat", &gamedata, sizeof(gamedata) );
//...
if i remember correctly that is the syntax, but it might be a little different..
so just mess with that... it should work
if anyone has corrections , feel free to post them
-zerovoid
[This message has been edited by zerovoid (edited November 16, 1999).]