File Helpers
Blueprint nodes to work with files and folders on the user's computer. Back to Helpers.
Test a path
|
Node |
What it does |
|---|---|
|
Test File Exist |
Returns true if the file exists. With Creat It ticked, a missing file is created empty, with its folders, and the node still returns false. |
|
Test Directory Exist |
Same for a folder: with Creat It ticked, a missing folder is created. |
|
String Adress As List To Convert |
Splits a path into its parts: |
Read and write a text file
Each node returns true on success.
|
Node |
Where |
|---|---|
|
Try Save String To File / Try Load String To File |
Any path you give. |
|
Try Save / Load String To File In Resource Directory |
The resource folder of the current experience. Only give the file name. |
|
Try Save / Load String To File In Appdata Directory |
The Skyreal VR user folder: |
|
Try Load ANSI String To File |
Reads a file that is not in UTF-8. Code Page sets its encoding (1252 by default, Western European). |
To save structured data, build it with the JSON nodes, then save the resulting string.
Ask the user for a file or a folder
Call Try Get File Picker Helper, then:
|
Node |
What it does |
|---|---|
|
Open File Dialog |
Lets the user pick a file. File Type filters the files shown. |
|
Open Save File Dialog |
Lets the user choose where to save a file. |
|
Open Directory Dialog |
Lets the user pick a folder. |
|
Clipboard Copy / Clipboard Paste |
Writes text to, or reads text from, the Windows clipboard. |
Each dialog returns the chosen path, or an empty string if the user cancels.
Show a file or a folder
|
Node |
What it does |
|---|---|
|
Explore Folder |
Opens Windows Explorer at a file or folder. Handy to show the user where a report was saved. |
|
Open Windows Photo Viewer |
Opens an image with the default Windows image viewer. |
To open any file in its application, see External process.