Read Specific Line From File

Populate a variable with the contents of a specific line from a file
Preview
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 variable

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

Line Number
Number
default:1

The line to extract from the file

Variables

The following variables will be populated after executing this sub-action:

Description
fileFoundbool

True or False if the file is present on disk

line

Contents of the selected line from the file

Example: Hello, world!