Hi everyone.
I'm not sure why but the following code:
void CFile::initFile()
{
	numRecords=0; 
	DataFile.open("GameData.dat", ios::in | ios::binary);
    DataFile.seekg(0L,ios::beg);
	DataFile.read((char *)&numRecords,sizeof(int));
	DataFile.close();
	if(!numRecords)
	{
		
		DataFile.open("GameData.dat", ios::out | ios::binary);
		DataFile.clear();
		DataFile.seekp(0L,ios::beg);
		DataFile.write((char *) &numRecords,sizeof(int));
		DataFile.close();
	}
	DataFile.open("GameData.dat",ios::in|ios::out|ios::binary);
};
   Does not seem to create a GameData.dat file when it is called.  This only happens when I am using CodeBlocks to compile and run the project.  using MinGW g++ from the console with this : 'g++ main.cpp functions.cpp -o Game.exe' and then run Game.exe it creates the GameData file no problem.  MSVC 6 also compiles and runs the Program which creates a GameData.dat file.  
Apparently CodeBlocks is not configured properly or something?   I am using CodeBlocks RC-1.  I downloaded and setup MinGW 3.4.4 separtely and then had CodeBlocks auto detect it.
My operating system is Windows XP if that helps.