kumu merge
[asdcplib.git] / src / KM_fileio.h
index 9c79d4992b5831fb0860747bb47ebd893bd5c526..b268ad79f2e3c042e4424921e3ff62a16ff659bd 100755 (executable)
@@ -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
     {