同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Performs operations on a file, including to open, close, write, read, and delete a file.
Since:
1.0
Version:
1.0
Defines the offset position used by UtilsFileSeek in a file to start offsetting from the file header. |
|
Defines the offset position used by UtilsFileSeek in a file to start offsetting from the current read and write position. |
|
Defines the offset position used by UtilsFileSeek in a file to start offsetting from the end of the file. |
|
O_RDONLY_FS 00 |
Defines a flag used byUtilsFileOpen to open a file in read-only mode. |
O_WRONLY_FS 01 |
Defines a flag used by UtilsFileOpen to open a file in write-only mode. |
O_RDWR_FS 02 |
Defines a flag used by UtilsFileOpen to open a file in read-and-write mode. |
O_CREAT_FS 0100 |
Defines a flag used by UtilsFileOpen to create a file when the file to open does not exist. |
O_EXCL_FS 0200 |
Defines a flag used by UtilsFileOpen to check whether the file to open exists when O_CREAT_FS is already set. |
O_TRUNC_FS 01000 |
Defines a flag used by UtilsFileOpen to clear the file content if the file exists and can be opened in write mode. |
O_APPEND_FS 02000 |
Defines a flag used by UtilsFileOpen to start reading or writing from the end of a file. |
UtilsFileOpen (const char *path, int oflag, int mode) |
|
UtilsFileClose (int fd) |
|
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. |
UtilsFileWrite (int fd, const char *buf, unsigned int len) |
Writes a specified length of data into a file with the specified file descriptor. |
UtilsFileDelete (const char *path) |
|
UtilsFileStat (const char *path, unsigned int *fileSize) |
|
UtilsFileSeek (int fd, int offset, unsigned int whence) |
|
UtilsFileCopy (const char *src, const char *dest) |
|
UtilsFileMove (const char *src, const char *dest) |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。