[OpenR8 solution] File (File operation, Delete folder, Delete file, Access binary file, Access string and access image)
  1. Chapter1: File

 

This File contains the following four features. See Fig. 1.

 

  1. File_DeleteDir and File_DeleteFile. Please see the second and third chapters of this article.
  2. Access the binary file (File_ReadBinary, File_SaveBinary). See the fourth chapter of this article.
  3. Access the image (File_ReadImage, File_SaveImage). See the fifth chapter of this article.
  4. Access the string (File_ReadString, File_SaveString). See the sixth chapter of this article.

 

This article will introduce and demonstrate how to use it, users can integrate functions to the required places according to their needs. For example, when training the model, you need to delete the folder before the data is transferred to lmdb to avoid conflicts. This function can use the delete folder scheme mentioned below.

 

Fig. 1. File folder.png

Fig. 1. File folder.

 

 

  1. Chapter2: delete File

 

  1. This function deletes the specified folder and contains all the folders and files in the folder. The schematic is shown in Fig. 2.
  2. Please double-click R8.exe => Click File => Open => Select OpenR8 > solution > File > File_DeleteDir folder => Load File_DeleteDir.flow => Select the folder you want to delete => Run, you can delete the specified folder.

As shown in Fig. 3, Fig. 4, Fig. 5, Fig. 6.

 

Fig. 2. Delete folder result.png

Fig. 2. Delete folder result.

 

Fig. 3. Run R8.png

Fig. 3. Run R8.exe.

 

Fig. 4. Select the flow file.png

Fig. 4. Select the flow file.

 

Fig. 5. Setting deleted folders.png

Fig. 5. Setting deleted folders.

 

Fig. 6. Execute delete folder.png

Fig. 6. Execute delete folder.

 

 

  1. Chapter3: Delete file

 

  1. This function is used to delete the specified file. The schematic is shown in Fig. 7.
  2. Please double-click R8.exe => Click File => Open => Select OpenR8 > solution > File > File_DeleteFile folder => Load File_DeleteFile.flow => Select the folder you want to delete => Run, you can delete the specified file. As shown in Fig. 8, Fig. 9, Fig. 10, Fig. 11.

 

Fig. 7. Delete file result.png

Fig. 7. Delete file result.

 

Fig. 8. Run R8.png

Fig. 8. Run R8.exe.

 

Fig. 9. Select flow file.png

Fig. 9. Select flow file.

 

Fig. 10. Select the file you want to delete.png

Fig. 10. Select the file you want to delete.

 

Fig. 11. Execute delete file.png

Fig. 11. Execute delete file.

 

 

  1. Chapter4: Read or Write binary file

 

  1. Read binary file:

Please double-click R8.exe => Click File => Open => Select OpenR8 > solution > File > File_ReadBinary folder => Load File_ReadBinary.flow => Select the folder you want to delete => Run, you can delete the specified file. As shown in Fig. 12, Fig. 13, Fig. 14, Fig. 15.

 

Fig. 12. R8.png

Fig. 12. R8.exe.

 

Fig. 13. Load solution.png

Fig. 13. Load solution.

 

Fig. 14. Setting the binary file to be read.png

Fig. 14. Setting the binary file to be read.

 

Fig. 15. Run solution.png

Fig. 15. Run solution.

 

  1. Save binary file:

Please double-click R8.exe => Click File => Open => Select OpenR8 > solution > File > File_ReadBinary folder => Load File_ReadBinary.flow => Set the binary file to be read => Run, the binary file can be saved to the specified location. As shown in Fig. 16, Fig. 17, Fig. 18, Fig. 19, Fig. 20.

 

Fig. 16. R8.png

Fig. 16. R8.exe.

 

Fig. 17. Select flow file.png

Fig. 17. Select flow file.

 

Fig. 18. Setting the stored binary file name.png

Fig. 18. Setting the stored binary file name.

 

Fig. 19. Run.png

Fig. 19. Run.

 

Fig. 20. Stored binary file.png

Fig. 20. Stored binary file.

 

 

  1. Chapter5: Read or save image

 

  1. Read image:

Please double-click R8.exe => Click File => Open => Select OpenR8 > solution > File > File_ReadImage folder => Load File_ReadImage.flow => Set the image to read => Run, the image can read into the variable, and then further processed according to the user's needs. As shown in Fig. 21, Fig. 22, Fig. 23, Fig. 24

 

Fig. 21. R8.png

Fig. 21. R8.exe.

 

Fig. 22. Load solution.png

Fig. 22. Load solution.

 

Fig. 23. Set the image you want to read in.png

Fig. 23. Set the image you want to read in.

 

Fig. 24. Run.png

Fig. 24. Run.

 

  1. Save Image:

Please double-click R8.exe => Click File => Open => Select OpenR8 > solution > File > File_SaveImage folder => Load File_SaveImage.flow => Set the image data to be saved => Run, you can save the image to a specified location. As shown in Fig. 25, Fig. 26, Fig. 27, Fig. 28, Fig. 29.

 

Fig. 25. R8.png

Fig. 25. R8.exe.

 

Fig. 26. Select flow file.png

Fig. 26. Select flow file.

 

Fig. 27. Set the image file name you want to save.png

Fig. 27. Set the image file name you want to save.

 

Fig. 28. Run.png

Fig. 28. Run.

 

Fig. 29. Stored images after execution.png

Fig. 29. Stored images after execution.

 

 

  1. Chapter6: Read or save string

 

  1. Read string:

Please double-click R8.exe => Click File => Open => Select OpenR8 > solution > File > File_ReadString folder => Load File_ReadString.flow => Set the text file to be read => Run, the text file can be read and stored in the variable, and then further processed according to the user's needs. As shown in Fig. 30, Fig. 31, Fig. 32, Fig. 33.

 

Fig. 30. R8.png

Fig. 30. R8.exe.

 

Fig. 31. Load solution.png

Fig. 31. Load solution.

 

Fig. 32. Setting the read text file.png

Fig. 32. Setting the read text file.

 

Fig. 33. Execute and display the read text.png

Fig. 33. Execute and display the read text.

 

  1. Save string:

Please double-click R8.exe => Click File => Open => Select OpenR8 > solution > File > File_SaveString folder => Load File_SaveString.flow => Set the text file to be save => Run, you can save the text as a file. As shown in Fig. 34, Fig. 35, Fig. 36, Fig. 37.

 

Fig. 34. R8.png

Fig. 34. R8.exe.

 

Fig. 35. Load solution.png

Fig. 35. Load solution.

 

Fig. 36. Set the file name of the stored string file.png

Fig. 36. Set the file name of the stored string file.

 

Fig. 37. Run.png

Fig. 37. Run.


Recommended Article

1.
OpenR8 - AI Software for Everyone (Download)