filereadstring

Reads data from the file based on the expression.

Syntax

filereadstring(file descriptor, expression)

Input

file descriptor

The file descriptor generally comes from the fileopen("path", "r") statement, where "r" is read only.

expression
Specifies what to read from the file.

Example

Template:
{tmp_read_string = filereadstring(file_pointer, "[+-]?[0-9]+[.]?[0-9]*([eE][+-]?[0-9]+)")}

Output:

Tmp_read_string

Comments

N/A