經安全檢測,此網站為安全網站,請放心前往原始網址!

c++ - Reading files using getline fstream - Stack Overflow

A stream might fail at any time & your loop has no way of reacting to it. You should do something like this :

stackoverflow.com

網址安全性掃描由 google 提供