Read Random Lines From File

Load the contents of a file and populate a set of variables from random lines

Read Random Lines From File Dialog

Parameters

File to read from
File required

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

NameTypeDescription

True or False if the file is present on disk

 
Example Value:Hello, world!

Each random line extracted based on the Count you configured. The line counter suffix is omitted from the first line read.

e.g. %randomLine%, %randomLine1%, %randomLine2%, and so on...

Example Value:3

The line number (numbered from 0) of each random line read. The line counter suffix is omitted from the first line number.

e.g. %randomLineNumber%, %randomLineNumber1%, %randomLineNumber2%, and so on...