File I/O Question
I have declared all files correctly
etc. but i don't understand why I can't read the data from the output file to the prompt?
outdata << "history ";
cout << line;
ofstreams are for file OUTput, if you want to read data in you want to use an ifstream.
Topic archived. No new replies allowed.