Expand description
File handling utilities that make life simpler for the common case.
Structs§
- Read
With Context - Automatically count lines and report them and the path in error messages
Functions§
- easy_
read_ line - “Clean” read_line function: returns true if it did read a line,
false on EOF. Does overwrite
line, not append to it. Removes trailing ‘\n’ if present. - open_
file - Easy buffered file opening with context on open errors. But see
ReadWithContextinstead for keeping context across subsequent calls, too. - trim