int UtilsFileOpen(const char* path, int oflag, int mode)
|
Opens or creates a file.
|
int UtilsFileClose(int fd)
|
Closes a file with a specified file descriptor.
|
int UtilsFileRead(int fd, char *buf, unsigned int len)
|
Reads a specified length of data from a file with the specified file descriptor and writes the data into the buffer.
|
int UtilsFileWrite(int fd, const char *buf, unsigned int len)
|
Writes a specified length of data into a file with the specified file descriptor.
|
int UtilsFileDelete(const char *path)
|
Deletes a specified file.
|
int UtilsFileStat(const char *path, unsigned int *fileSize)
|
Obtains the file size.
|
int UtilsFileSeek(int fd, int offset, unsigned int whence)
|
Adjusts the read and write position offset in a file.
|
int UtilsFileCopy(const char* src, const char* dest)
|
Copies the source file to a target file.
|
int UtilsFileMove(const char* src, const char* dest)
|
Moves the source file into a target file.
|