Added love.filesystem.append (issue #541)

This commit is contained in:
Alex Szpakowski
2013-03-17 03:40:13 -03:00
parent 96229bcb5d
commit 129ae0f4eb
4 changed files with 38 additions and 4 deletions
+9 -1
View File
@@ -244,7 +244,15 @@ public:
* @param data The data to write.
* @param size The size in bytes of the data to write.
**/
void write(const char *filename, const void *data, int64 size);
void write(const char *filename, const void *data, int64 size) const;
/**
* Append data to a file, creating it if it doesn't exist.
* @param filename The name of the file to write to.
* @param data The data to append.
* @param size The size in bytes of the data to append.
**/
void append(const char *filename, const void *data, int64 size) const;
/**
* Check if end-of-file is reached.