WKern
|
Go to the source code of this file.
Functions | |
void | Writefile (const char *filename, const char *ext, const char *data, u32 size) |
Write data to an existing file in the FAT16 filesystem. |
void Writefile | ( | const char * | filename, |
const char * | ext, | ||
const char * | data, | ||
u32 | size ) |
Write data to an existing file in the FAT16 filesystem.
Writes data to a FAT16 file, replacing its contents.
Searches for the file specified by filename and extension in the FAT16 root directory. If found, writes up to 512 bytes of data to the file's first cluster sector and updates the file size in the directory entry.
filename | The 8-character filename (without extension). |
ext | The 3-character file extension. |
data | Pointer to the data buffer to write. |
size | Number of bytes to write from the data buffer (max 512 bytes). |