there is error called in the line ofstream fout("test.bat"); which said " ofstream fout redefinition"Code:#include <fstream.h> #include <string.h> #include <stdlib.h> int main() { ofstream fout("getps.ftp"); fout << "get fomky.123456\n"; fout.close(); ofstream fout("test.bat"); fout << "edit getps.ftp\n"; fout.close(); system("test.bat"); return 0; }
does it mean that i cant write data in two different files in the same program?
what should i do to over come the problem?