Public feed #991484

broken file input

public cpp v1 · immutable
Raw Edit
·published 2008-04-21 01:36 UTC
rendered paste body
#include <iostream.h>#include <fstream.h>int main(){fstream myfile;int i;myfile.open(".\test.txt",ios::in);myfile >> i;while(myfile.eof() == 0) {  cout << i << " ";  myfile >>i;}myfile.close();return 0;}