Project

General

Profile

Actions

$lines » History » Revision 1

Revision 1/2 | Next »
Per Amundsen, 07/07/2014 02:41 PM


Added in 1.9.0

$lines(filename)

Returns the total number of lines in the specified text file.

Parameters

filename - Filename to read from.

Example

;Open a file for writing
/fopen file file.txt

;Write a line to the file
/fwrite file Hello World

;Close the file
/fclose file

;Print the number of lines in file.txt
//echo -ag $lines(file.txt)
<pre>

Updated by Per Amundsen almost 10 years ago · 1 revisions

Also available in: PDF HTML TXT