
-----------------------------------
NewHydrolisk
Fri Jul 02, 2010 4:58 pm

Reading Specific Data in Files
-----------------------------------
Hello there. I am trying to create save and load functions that will write data to a file and read data from a file respectively. I am using Dev-C++, so my compiler would be MinGW. I think.

Specifically, the problem I have at hand is the data reading from the file. I have solved the saving portion of my task.

[code]void save() // game save
{
    ofstream charFile( "charFile.sav", ios::trunc | ios::binary ); // open output file stream for "charFile"
    if( charFile.is_open() == 1 )
    {
        charFile 