diff options
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h index 3a06671..ba9f29a 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -327,10 +327,14 @@ bool TruncateFile(FILE* file); // Reads the given number of bytes from the file into the buffer. Returns // the number of read bytes, or -1 on error. +int ReadFile(const FilePath& filename, char* data, int size); +// Deprecated temporary compatibility function. int ReadFile(const std::wstring& filename, char* data, int size); // Writes the given buffer into the file, overwriting any data that was // previously there. Returns the number of bytes written, or -1 on error. +int WriteFile(const FilePath& filename, const char* data, int size); +// Deprecated temporary compatibility function. int WriteFile(const std::wstring& filename, const char* data, int size); // Gets the current working directory for the process. |