Closed pkeir closed 2 years ago
ifstream::bad will still return false when a file is missing. (It took me a few minutes to notice that, while I was working on something.) I thought a check using ifstream::good might be helpful.
ifstream::bad
false
ifstream::good
ifstream::bad
will still returnfalse
when a file is missing. (It took me a few minutes to notice that, while I was working on something.) I thought a check usingifstream::good
might be helpful.