I obviously need a little help learning the logistics of ofstream. In the following code I get the error shown at bottom.
--------------------------------------------------
Code:ofstream outf("DrawDown.txt"); if (!outf.good()) { cerr << "Problem opening DrawDown file" << endl; "\n"; } outf << "This went out " << iDebugPrtCt << "\n"; if (outf.fail() ) { cerr << "Failed write DrawDown file" << endl; "\n"; } outf.close(); ofstream outf("DrawDown.txt", ios_base::out | ios_base::app ); ------------------------- pulls this error on compile, redeclaration of 'std::ofstream outf'