|
Kore 3
|
Provides an API very similar to fwrite and friends but uses a directory that provides persistent file storage. This can later be read using the kore_file_reader-functions and KORE_FILE_TYPE_SAVE. More...
Go to the source code of this file.
Data Structures | |
| struct | kore_file_writer |
Typedefs | |
| typedef struct kore_file_writer | kore_file_writer |
Functions | |
| KORE_FUNC bool | kore_file_writer_open (kore_file_writer *writer, const char *filepath) |
| Opens a file for writing. | |
| KORE_FUNC void | kore_file_writer_write (kore_file_writer *writer, void *data, int size) |
| Writes data to a file starting from the current writing-position and increases the writing-position accordingly. | |
| KORE_FUNC void | kore_file_writer_close (kore_file_writer *writer) |
| Closes a file. | |
Provides an API very similar to fwrite and friends but uses a directory that provides persistent file storage. This can later be read using the kore_file_reader-functions and KORE_FILE_TYPE_SAVE.
| KORE_FUNC void kore_file_writer_close | ( | kore_file_writer * | writer | ) |
Closes a file.
| reader | The file to close |
| KORE_FUNC bool kore_file_writer_open | ( | kore_file_writer * | writer, |
| const char * | filepath ) |
Opens a file for writing.
| reader | The writer to initialize for writing |
| filepath | A filepath to identify a file |
| KORE_FUNC void kore_file_writer_write | ( | kore_file_writer * | writer, |
| void * | data, | ||
| int | size ) |
Writes data to a file starting from the current writing-position and increases the writing-position accordingly.
| reader | The writer to write to |
| data | A pointer to read the data from |
| size | The amount of data to write in bytes |