#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main()
{
string aj;
string b;
while (getline(cin,b))
{
aj += b + 'n';
}
cout<<aj;
ofstream file ("D:\file.txt");
if (file.is_open())
{
File aj;
File.close ();
cout<<"Save";
}
else {
cout<<"Error";
}
return 0;
}
1 2 3 4 5 6 7
|
ofstream file ("D:\file.txt"); <-- Not gonna use that?
if (file.is_open())
{
File aj; <-- ?
File.close ();
cout<<"Save";
}
|
Last edited on