Skip to content
MonsieurDupont edited this page Jan 13, 2023 · 8 revisions

If you have any questions feel free to ask me on the product page or send me an email at tacosspatial@gmail.com .

How to use

The plugin has three functions: Read file , Save file and Delete file


1. Read file

  • Display name : "Read file"
  • Keywords : "Read Load File "
  • Category : "Read write file"

Code example

Code example

Inputs:

Name Type Description
File path String The file path
The path must be in this format ‪Disk:\Folder\File.txt (or any other text extension)

Outputs:

Name Type Description
Success Boolean - Returns true if the file was read successfully
- Returns false if the file could not be read
Info message String Outputs a message depending on what happened
Empty text Boolean - Returns true if the text is empty
- Returns false if the text is not empty
Return value String The read text from the file

Info messages

Situation Message
File doesn't exist "Failed to read file: File doesn't exist"
Can't read file "Failed to read file"
Successfully read file "Successfully read file"
Empty file "Successfully read file but file is empty"

2. Save file

  • Display name : "Save file"
  • Keywords : "Save Write File "
  • Category : "Read write file"

Inputs

Name Type Description
File path String The file path
The path must be in this format ‪Disk:\Folder\File.txt (or any other text extension)
String to save String The string to be saved in the file

Outputs

Name Type Description
Success Boolean - Returns true if the file was saved successfully
- Returns false if the file could not be saved
Info message String Outputs a message depending on what happened

Info messages

Situation Message
Can't save file "Failed to save file: Path is invalid"
Successfully saved file "Successfully saved file"

1. Delete file

  • Display name : "Delete file"
  • Keywords : "Delete Remove File "
  • Category : "Read write file"

Inputs

Name Type Description
File path String The file path
The path must be in this format ‪Disk:\Folder\File.txt (or any other text extension)

Outputs

Name Type Description
Success Boolean - Returns true if the file was successfully deleted
- Returns false if the file could not be deleted
Info message String Outputs a message depending on what happened

Info messages

Situation Message
Could not delete file "Could not find file"
Successfully deleted file "File deleted successfully"

To change the Info Messages, you have to open the ReadWritePluginBPLibrary c++ file (you need to have visual studio installed) and then in the .cpp file change them manually. Each message is preceded by a comment explaining the situation (refer to the Info messages boards).