Timeline for Read whole ASCII file into C++ std::string
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 7, 2022 at 9:27 | comment | added | user11877195 | @reddish it indeed isn't, in modern C++ it is better to use std::char_traits<char>::eof(). If someone is still using an ancient compiler... <cstdio> contains EOF macro. | |
| Jul 4, 2013 at 20:00 | review | Suggested edits | |||
| Jul 4, 2013 at 20:19 | |||||
| Jan 23, 2013 at 10:54 | comment | added | reddish | char(-1) is probably not a portable way to denote EOF. Also, getline() implementations are not required to support the "invalid" EOF pseudo-character as a delimiter character, I think. | |
| Oct 22, 2012 at 12:55 | history | answered | chunkyguy | CC BY-SA 3.0 |