File Management
Introduction
This sample shows file management functions, such as creating a file, changing a file name, writing a file, reading a file, and deleting a file.
Usage
-
Touch Create fileIo to create a file. After the file is created successfully, the absolute path of the file is displayed.
-
Touch Rename fileIo to change the file name. After the operation is successful, the absolute path of the new file is displayed.
-
Touch Write fileIo to write data to the file. After the data is written, the content written is displayed.
-
Touch Read fileIo to read file information. After the operation is successful, the content read is displayed.
-
Touch Delete fileIo to delete the file. A message is displayed, indicating that the file is deleted successfully.
Constraints
This sample can only be run on standard-system devices.