utils_file.h
Description:
Performs operations on a file, including to open, close, write, read, and delete a file.
Since:
1.0
Version:
1.0
Function Name |
Description |
---|---|
(const char path, int oflag, int mode) |
int Opens or creates a file. |
UtilsFileClose (int fd) |
int Closes a file with the specified file descriptor. |
int Reads a specified length of data from a file with the specified file descriptor and writes the data into the buffer. |
|
(int fd, const char buf, unsigned int len) |
int Writes a specified length of data into a file with the specified file descriptor. |
UtilsFileDelete (const char path) |
int Deletes a specified file. |
(const char path, unsigned int fileSize) |
int Obtains the file size. |
UtilsFileSeek (int fd, int offset, unsigned int whence) |
int Adjusts the read and write position offset in a file. |
(const char src, const char dest) |
int Copies the source file to a target file. |
UtilsFileMove (const char src, const char dest) |
Moves the source file into a target file. |