Function TRAP::FileSystem::ReadFile#
Function Documentation#
-
TRAP::Optional<std::vector<u8>> TRAP::FileSystem::ReadFile(const std::filesystem::path &path)#
Read the given binary file.
Note
This will read the whole file into memory, only use this for small files.
- Parameters:
path – File path.
- Returns:
File content as std::vector<u8> on success, empty std::optional otherwise.