+ 1
File in c++
How to open and read file like input (cin) and print output in other document?
6 ответов
0
cout?!
0
ok
ти рус?
- 2
#include "iostream"
#include "string"
#include "fstream"
using namespace std;
int main()
{
ifstream in("/sdcard/C++/username_password.cxx");
ofstream out("/sdcard/C++/Test.txt");
string s;
while (getline(in, s))
{
out << s << "\n";
}
}
- 2
нет просто out
- 2
Qazaq