Thanks.
What other solution is proposed apart from the one mentioned in the link.
I.e. they propose:
while (fileinput >> stream)
Is this the best and only option?
Type: Posts; User: Vespasian
Thanks.
What other solution is proposed apart from the one mentioned in the link.
I.e. they propose:
while (fileinput >> stream)
Is this the best and only option?
It is commonly advised that using the EOF flag for file input is erroneous in C++. The follwoing article explains why:
EOF And Reading Text Files (C++) - C++ Tutorials | Dream.In.Code
I...