+ 2
using a while loop ifstream f("xyz.txt"); while(!f.eof()) {} file will be read till one character before eof.
13th Oct 2018, 6:24 PM
Animesh Kumar
Animesh Kumar - avatar