Hi all
I have a different problem now -- trying to use "ios::app".
I understand it is what you use to append to a file, but where is it placed?
ininCode:ifstream a_file ios::app?in both?.... where?Code:ofstream b_file ios::app?
Hi all
I have a different problem now -- trying to use "ios::app".
I understand it is what you use to append to a file, but where is it placed?
ininCode:ifstream a_file ios::app?in both?.... where?Code:ofstream b_file ios::app?
Appendig to a stream that you want to read doesn't make sense. does it ?
Kurt
You use the open mode flags when you open the file, or with the non-empty constructor.
Code:ofstream out1; out1.open("YourFileName", std::ios::app); ofstream out2("YourFileName", std::ios::app);
Jim