Read Random Lines From File
Load the contents of a file and populate a set of variables from random lines
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 randomLine#
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 a number, the resulting variable for that line can be properly typed as an int
Count
Number
default:
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! |