I am a beginner in programming and I am trying to make a code that reads 2 numbers from a file and then displays it in the output window on turbo c++. My code only reads the fi
The std::cout should be inside the while loop:
std::cout
while(!inFile.eof()){ inFile >> x >> y; cout << x << " " << y; }