From 719f60cfc641d85c2cd41598bdff209400ab1fab Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Jul 2006 22:11:53 +0000 Subject: Add FileReader::ContentSize and FileReader::Contents git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4314 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index e326f6d97..33416a596 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1850,6 +1850,14 @@ class FileReader : public classbase */ void LoadFile(const std::string &filename); + /** Returns the whole content of the file as std::string + */ + std::string Contents(); + + /** Returns the entire size of the file as std::string + */ + unsigned long ContentSize(); + /** Returns true if the file exists * This function will return false if the file could not be opened. */ -- cgit v1.3.1-10-gc9f91