Read Lines From File
Load the contents of a file into variables
Preview
Parameters
File to read fromrequired
File
Select the file to load, or enter a path
Variable Name
Text
default:
line
Enter a variable name to override the default line#
variables with your own naming scheme
Parse Variables
Toggle
default:
false
Enable this option to enable parsing and replacement of %variables%
found within the file contents
Attempt auto-typing
Toggle
default:
false
While reading the contents of the file, attempt to auto-type on a line-by-line basis.
For example, if a line consists of a number, the resulting variable for that line can be properly typed as an int
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
fileFound | bool |
|
line# |
| Each line of output parsed from the file parsed to its own variable e.g. Example: Hello, world! |
lineCount | int | Total number of lines in the file Example: 12 |