Does anyone know why the second open below fails? To make the second open work you must do it as
file_out.open(file_name, ios::in | ios::out);
file_out.open(file_name, ios::out); doesn't even work.
The test.txt file exists and is just three lines of text. I'm compiling with VC++ 6.0.
Thanks for any ideas
int main(int argc, char* argv, char *envp)
char file_name = "c:\\test.txt";
printf("\n%s %s for input", file_in.is_open()? "Opened" : "Could not open", file_name);
printf("\n%s %s for output\n\n", file_out.is_open()? "Opened" : "Could not open", file_name);