1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream> #include <fstream> #include <string> using namespace std; int main(void) { string str; ofstream ofs("out.txt"); ifstream ifs("in.csv"); while(!ifs.eof()) { ifs >> str; if(ifs.good()) ofs << str << endl; } return 0; }
1
Timeout