Read Random Lines From File

Parameters
Select the file to load, or enter a path
line
Enter a variable name to override the default randomLine#
variables with your own naming scheme
false
Enable this option to enable parsing and replacement of %variables%
found within the file contents
false
While reading the contents of the file, attempt to auto-type on a line-by-line basis.
For example, if a line consists a number, the resulting variable for that line can be properly typed as an int
1
Number of random lines to extract from the file
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
fileFound | bool |
|
randomLine# |
| Each random line extracted based on the e.g. Example: Hello, world! |
randomLineNumber# | int | The line number (numbered from 0) of each random line read. The line counter suffix is omitted from the first line number. e.g. Example: 3 |