C++ Reference: filelineiter

This documentation is automatically generated.

Allows to read a text file line by line with: for (const std::string& line : FileLines("myfile.txt")) { ... }

More details:
   * The lines are separated by '\n' (which is removed by default) and have no
   size limits.
   * Consecutive '\n' result in empty lines being produced.
   * If not empty, the std::string after the last '\n' is produced as the last line.


   * Options are available to keep the trailing '\n' for each line, to remove
   carriage-return chararters ('\r'), and to remove blank lines.

Implements the minimum interface for a range-based for loop iterator.

Classes

FileLineIterator
FileLines

Send feedback about...