c++ - How to detect end-of-file when using getline? - Stack Overflow
經安全檢測,此網站為安全網站,請放心前往原始網址!
c++ - How to detect end-of-file when using getline? - Stack Overflow
It evaluates to false if you try to read past EOF. ... error handling but I would not
recommend this either if the program reads until the end, as that ...