README_en.md
1# File Management
2
3### Introduction
4
5This sample shows file management functions, such as creating a file, changing a file name, writing a file, reading a file, and deleting a file.
6
7### Usage
8
91. Touch **Create fileIo** to create a file. After the file is created successfully, the absolute path of the file is displayed.
10
112. Touch **Rename fileIo** to change the file name. After the operation is successful, the absolute path of the new file is displayed.
12
133. Touch **Write fileIo** to write data to the file. After the data is written, the content written is displayed.
14
154. Touch **Read fileIo** to read file information. After the operation is successful, the content read is displayed.
16
175. Touch **Delete fileIo** to delete the file. A message is displayed, indicating that the file is deleted successfully.
18
19### Constraints
20
21This sample can only be run on standard-system devices.
22
README_zh.md
1# 文件管理
2
3### 简介
4
5本示例展示了文档管理的部分功能,例如:创建文件、修改文件名、文件写入、文件读取、删除文件。
6
7
8
9### 相关概念
10
11文件管理:提供文件存储管理能力,包括文件基本管理、文件目录管理、文件信息统计、文件流式读写等常用功能。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191.点击"创建文件"按钮,创建文件,创建成功,Toast显示文件的绝对路径。
20
212.点击"修改文件名"按钮,修改文件名,修改成功,Toast显示修改文件名后的绝对路径。
22
233.点击"写入文件"按钮,向文件中写入内容,写入成功,Toast显示文件写入的内容。
24
254.点击"读取文件"按钮,读取文件中的内容,读取成功,文本框中显示读取到的内容。
26
275.点击"删除文件"按钮,删除文件,Toast显示文件删除成功。
28
29### 约束与限制
30
311.本示例仅支持在标准系统上运行。
32
332.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。