![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Functions | |
std::optional< std::string > | extension (const std::string &filepath) noexcept |
Get a file or path's extension. | |
std::expected< std::string, FileError > | read (const std::string &filepath) |
Read a non-binary file on disk. | |
std::optional< FileError > | write (const std::string &filepath, const std::string &data) |
Writes a non-binary file to disk. | |
|
nodiscardnoexcept |
Get a file or path's extension.
filepath | Filename or path with a filename. |
Definition at line 16 of file FileUtils.cpp.
|
nodiscard |
Read a non-binary file on disk.
filepath | Path to file to read. |
Definition at line 27 of file FileUtils.cpp.
|
nodiscard |
Writes a non-binary file to disk.
filepath | Path to file to write to. |
data | Data to write to file. |
Definition at line 56 of file FileUtils.cpp.