galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
FileUtils.hpp File Reference
#include <expected>
#include <optional>
#include "galaxy/fs/FileError.hpp"
+ Include dependency graph for FileUtils.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  galaxy
 Timer.hpp galaxy.
 
namespace  galaxy::fileutils
 

Functions

std::optional< std::string > galaxy::fileutils::extension (const std::string &filepath) noexcept
 Get a file or path's extension.
 
std::expected< std::string, FileErrorgalaxy::fileutils::read (const std::string &filepath)
 Read a non-binary file on disk.
 
std::optional< FileErrorgalaxy::fileutils::write (const std::string &filepath, const std::string &data)
 Writes a non-binary file to disk.