+ 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

Often have questions like this?
Learn more efficiently, for free:
Hot today
Using Python on VScode
2 Votes
Python Developer
0 Votes
Average of Two Numbers
0 Votes
Wayss
0 Votes
fully dynamic arrays
1 Votes
Hearts
0 Votes