summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/File.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-23 20:26:00 +0100
committermadmaxoft <github@xoft.cz>2013-11-23 20:26:00 +0100
commit94e14e1ace16a265b8e58a186c308609c504d288 (patch)
treece265c131f19bfcf43382a0bd0a80da5e84812c4 /source/OSSupport/File.h
parentAPIDump: Added more constant groups. (diff)
downloadcuberite-94e14e1ace16a265b8e58a186c308609c504d288.tar
cuberite-94e14e1ace16a265b8e58a186c308609c504d288.tar.gz
cuberite-94e14e1ace16a265b8e58a186c308609c504d288.tar.bz2
cuberite-94e14e1ace16a265b8e58a186c308609c504d288.tar.lz
cuberite-94e14e1ace16a265b8e58a186c308609c504d288.tar.xz
cuberite-94e14e1ace16a265b8e58a186c308609c504d288.tar.zst
cuberite-94e14e1ace16a265b8e58a186c308609c504d288.zip
Diffstat (limited to '')
-rw-r--r--source/OSSupport/File.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/OSSupport/File.h b/source/OSSupport/File.h
index 70f81c8d2..01663a229 100644
--- a/source/OSSupport/File.h
+++ b/source/OSSupport/File.h
@@ -121,6 +121,9 @@ public:
/// Creates a new folder with the specified name. Returns true if successful. Path may be relative or absolute
static bool CreateFolder(const AString & a_FolderPath);
+ /// Returns the entire contents of the specified file as a string. Returns empty string on error.
+ static AString ReadWholeFile(const AString & a_FileName);
+
// tolua_end
/// Returns the list of all items in the specified folder (files, folders, nix pipes, whatever's there).