Only standard I/O is assumed for reading test data and writing results--no file opening.
g++ -o io-cpp io-cpp.cxx
io-cpp < io.data |
Extracts a string of the specified length, unless the delimiter is encountered earlier. The character '\n' is implicitly assumed for a delimiter, when a delimiter is not explicitly provided.
get a character
In the default setting, spaces are ignored when characters are read. The following switches can modify the behavior.