[ create a new paste ] login | about

Link: http://codepad.org/SW07pvuS    [ raw code | output | fork ]

C++, pasted on Aug 24:
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;
}


Output:
1
Timeout


Create a new paste based on this one


Comments: