Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
#include <file_utils.hpp>
{ auto file = [FileHandle::open](#open)("data.txt", std::ios::out); if (file.is_open()) { file.stream() << "Hello, World!\n"; } } // File automatically closed here
FileHandle
bool
is_open
const
std::fstream &
stream
FileHandle() = default
FileHandle(const FileHandle &) = delete
inline
inline FileHandle(FileHandle && other) noexcept
inline bool is_open() const
inline std::fstream & stream()
open
static
static inline FileHandle open(const std::string & path, std::ios::openmode mode)
std::fstream
stream_
std::fstream stream_
Was this page helpful?