Actions: Disk I/O
ask for file path
Asks the user to select a desired filepath. A filepath contains a filename and its folder path.
Argument | Description |
---|---|
FilePathVariable | The variable that will contain the filepath. It will contain ‘Cancel’ if the user cancelled the selection. |
DefaultFileName | Pass an optional default name and location of the folder whose contents will be shown in the selection dialog. |
ask for folder
Asks the user to select a folder.
Argument | Description |
---|---|
FolderSelectionVariable | The variable that will contain the path of the selected folder. ‘Cancel’ will be output to the variable if the user cancel’s the selection dialog. The returned folder path INCLUDES the trailing slash (/). |
create a folder
Create a folder inside the user’s ‘documents’ folder.
Argument | Description |
---|---|
FolderName | The name of the folder to be created in the current user’s ‘documents’ folder |
export as CSV
Exports the provided column headers and row data as a CSV file. On desktop, the file will be saved to the selected location. On mobile, the file will be saved to the app’s documents folder.
Argument | Description |
---|---|
ColumnHeaders | A comma-delimited list of headers for each column of the CSV file.
If the value contains a comma or new line, the value must be enclosed in
a pair of quotation marks. If the value contains a quotation mark, use
double quotation marks. Example Header Data: Book Title,Author,Quote |
RowData | A line-delimited list where each line is a row of the CSV file. Each
line contains a comma-delimited list of column values. If the value
contains a comma or new line, the value must be enclosed in a pair of
quotation marks. If the value contains a quotation mark, use double
quotation marks. Example Row Data: The Fellowship of the Ring,J.R.R. Tolkien,“““Not all those who wander are lost.”““ ”Oh, the Places You’ll Go!“,Dr. Seuss,”““Kid, you’ll move mountains.”““ The Collected Poems of Emily Dickinson,Emily Dickinson,”““That it will never come again Is what makes life so sweet.”“” |
list files
Lists the files in a specified folder inside the current user’s ‘Documents’ folder.
Argument | Description |
---|---|
FolderName | The name of the folder inside the current user’s ‘Documents’ folder to list the files from. |
VariableName | The variable to store the file list output into. |
load a text file
Load a text file from specified folder inside current user’s ‘Documents’ folder.
Argument | Description |
---|---|
VariableName | The variable to load the text file into |
FolderName | The name of the folder to load from, inside current user’s ‘Documents’ folder |
FileName | Name of the text file to load |
load binary file
Load a binary file from specified folder inside current user’s ‘Documents’ folder.
Argument | Description |
---|---|
VariableName | The variable to load the binary file into |
FolderName | The name of the folder to load from, inside current user’s ‘Documents’ folder |
FileName | Name of the binary file to load |
load file from path
Load a binary file from specified folder inside current user’s ‘Documents’ folder.
Argument | Description |
---|---|
Mode | Set the mode of the load operation. Binary or text. The default is Binary, and usually works for text as well. |
FilePath | The full path of the file to load. |
Variable | The variable into which to load the file. |
save a binary file
Save a binary file into specified folder inside current user’s ‘Documents’ folder.
Argument | Description |
---|---|
VariableName | The variable to save into a binary file |
FolderName | The name of the folder to save into, inside current user’s ‘Documents’ folder |
FileName | Name of the binary file to save |
save a text file
Save a text file into specified folder inside current user’s ‘Documents’ folder.
Argument | Description |
---|---|
VariableName | The variable to save into a text file |
FolderName | The name of the folder to save into, inside current user’s ‘Documents’ folder |
FileName | Name of the text file to save |
save file to path
Save a file to a precise path on the device’s local file system. Include the file name and extension in the path.
Argument | Description |
---|---|
Mode | Set the mode of the save operation. Binary or text. The default is Binary, and usually works fine for text as well. |
Data | The variable where the data to be saved is stored. |
FilePath | The variable where the full file path is stored. |
select file
Ask the user to select one or more files.
Argument | Description |
---|---|
FileNameVariable | The variable that will contain only the file name of the selected file. Or a list of filenames, if multiple files are selected |
SelectedFileVariable | The variable that will contain a line delimited list of selected files |
AllowMultipleFiles | Set to true to allow for selection of multiple files |
set working folder
Set the working folder (inside the user’s ‘documents’ folder).
Argument | Description |
---|---|
FolderName | The value to set variable to (input or another variable) |
This chapter was last updated on Fri 8 Nov 2024 10:54:34 GMT