Hi
I have some problems with file input/output. I've tried the
fread/fwrite commands, and I've tried the ifstream and ofstream, but I don't seem to get it right.
Can somebody help me with file input/output?
Here is what I'm doing. I play a game called VGA Planets (play by email game, space-like game, with ships and starbases etc). I've got a file describing how all the game files is built up. But when I try to read these files in C++, I have some problems. And I have even more problems trying to write back into the game files.
The game was written in Visual Basic, so the files are very visual basic friendly. The program I'm trying to write in C++, I've already written it in VB, and it works there.. but I want a C++ copy, but ... file i/o is a mess. :(
Let me know if you can help me out.
|