We're learning file I/O. The code below works, but the file name to open, testFile.txt, is hard coded into the program. How can the filename be input by the user? I'm not using argv stuff on the command line because the compiler we're using, MSVC 6.0 Intro edition, doesn't support release versions, only debug.
I've tried cin with strings and char * 's, but always get a compile error. Any ideas? Thanks.
Code:fileIn1.open("testFile.txt");