All I want to do is open text file ‘tstfile.txt’ in the subdirectory ‘data’.
I want to read the first string of text out of there, which is:
but no matter where I tell file.open to get tstfile.txt from, it won’t open it and it will give me ‘no file found’ message.
file.open( “data stfile.txt”, ios::in/ios::nocreate );
if ( !file )
MessageBox( NULL, “No File”, “INFO”, NULL );
can somebody compile this, and run it to make sure it works?