Project

General

Profile

Actions

Added in 1.9.0

$readn

Returns the line number that was matched in a previous call to $read. If no match was found, $readn is set to zero.

Example

; Read a random line from the file 'file.txt'.
//noop $read(file.txt)

; Print the line number from the last $read.
//echo -ag Line number from the last read was: $readn

Updated by Per Amundsen over 8 years ago · 1 revisions

Also available in: PDF HTML TXT