Project

General

Profile

$readn » History » Version 1

Per Amundsen, 08/14/2015 01:33 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$readn*
4
5
Returns the line number that was matched in a previous call to [[$read]]. If no match was found, [[$readn]] is set to zero.
6
7
*Example*
8
9
<pre>
10
; Read a random line from the file 'file.txt'.
11
//noop $read(file.txt)
12
13
; Print the line number from the last $read.
14
//echo -ag Line number from the last read was: $readn
15
</pre>