idStr str; idStr str2; str = "test.cfg"; idFile* file = fileSystem->OpenFileRead( str.c_str() ); if ( file == NULL ) { gameLocal.Printf("error while reading the File\n"); return; } file->ReadString(str2); fileSystem->CloseFile(file); gameLocal.Printf(str2.c_str());