diff options
Diffstat (limited to 'src/KM_fileio.h')
| -rwxr-xr-x | src/KM_fileio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/KM_fileio.h b/src/KM_fileio.h index 9c79d49..b268ad7 100755 --- a/src/KM_fileio.h +++ b/src/KM_fileio.h @@ -113,9 +113,12 @@ namespace Kumu bool PathIsDirectory(const char* pathname); fsize_t FileSize(const char* pathname); - // reads an entire file into a string + // Reads an entire file into a string. Result_t ReadFileIntoString(const char* filename, std::string& outString, ui32_t max_size = 256 * Kilobyte); + // Writes a string to a file, overwrites the existing file if present. + Result_t WriteStringIntoFile(const char* filename, const std::string& inString); + // class FileReader { |
