A header-only C++ library intended to provide a safe and easy to use wrapper class for C file streams. The class contains static and member functions to access the entire <cstdio>
header.
Not to be confused with MFC CFile.
- Strong ownership semantics for
std::FILE *
(copying is disallowed) - Automatic management of file resources using RAII techniques
- Same class size and alignment as
std::FILE *
- Follows the zero-cost abstraction principle (don't pay for what you don't use)
- Debug runtime assertions for common misuses
- Easy access to the underlying
std::FILE *
for compatibility with existing code - Specifying the file access mode with an enum
- All functions are
noexcept
C++14 language version.
Licensed under MIT.