Difference between revisions of "(File):lines"

m (1 revision: Importing from potato (again).)
m (Add links and missing fullstops.)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
+
Iterate over all the lines in a [[File|file]].
Iterate over all the lines in a file
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 9: Line 8:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|function|iterator|The iterator (can be used in for loops)}}
+
{{param|function|iterator|The iterator (can be used in for loops).}}
 
== See Also ==
 
== See Also ==
 
* [[parent::File]]
 
* [[parent::File]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Iterate over all the lines in a file}}
+
{{#set:Description=Iterate over all the lines in a file.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|(File):lines}}

Latest revision as of 12:58, 7 November 2014

Iterate over all the lines in a file.

Function

Synopsis

iterator = File:lines( )

Arguments

None.

Returns

function iterator
The iterator (can be used in for loops).

See Also


Other Languages