diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..9965312ef2a0980bdb6decf90e4a15cc2abe41d5 --- /dev/null +++ b/README.en.md @@ -0,0 +1,35 @@ +# Files Manager + +## Introduction + +Learn how to implement file management, including saving and reading app files, reading user files and images, and reading and saving TXT files. + +![](screenshots/device/file.en.gif) + +## Concepts + +- Files manager: provides APIs for file operations, including accessing and managing files and directories, obtaining file information, and reading and writing data using streams. (**@ohos.file.fs**) +- Picker: encapsulates APIs such as **PhotoViewPicker**, **DocumentViewPicker**, and **AudioViewPicker** for you to pick and save files. (**@ohos.file.picker**) +- Photo manager: provides the photo management capabilities, including creating an album, and accessing and modifying media data in the album. (**@ohos.file.photoAccessHelper**) +- PhotoViewPicker: allows you to pick and save images and videos. +- DocumentViewPicker: allows you to pick and save documents in different formats. + +## Permissions + +N/A + +## How to Use + +1. Enter the content in the text box and tap **Save to the application sandbox directory**. Create a sandbox file for saving the information. +2. Tap **Read the saved file content** to read the content saved in the sandbox file. +3. Tap **Save image** to save the image to Gallery. +4. Tap the image to be added. Switch to Gallery and pick an image to display. +5. Enter the content in the text box and tap **Save the test.txt file to the user directory**. Switch to the file manager page, create a file, and save the content. +6. Tap **Read the test.txt file content**. Switch to the file directory and pick the file to read. + +## Constraints + +1. The sample is only supported on Huawei phones with standard systems. +2. HarmonyOS: HarmonyOS NEXT Developer Beta1 or later. +3. DevEco Studio: DevEco Studio NEXT Developer Beta1 or later. +4. HarmonyOS SDK: HarmonyOS NEXT Developer Beta1 SDK or later. diff --git a/screenshots/device/file.en.gif b/screenshots/device/file.en.gif new file mode 100644 index 0000000000000000000000000000000000000000..eb8dcfd5f68a3ee040b0a15a6ea7a87bc1dd61f0 Binary files /dev/null and b/screenshots/device/file.en.gif differ