Difference between revisions of "love.filesystem.lines"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Iterate over the lines in a file
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 13: Line 13:
 
* [[parent::love.filesystem]]
 
* [[parent::love.filesystem]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Iterate over the lines in a file}}

Revision as of 17:17, 14 February 2010

Iterate over the lines in a file

Function

Synopsis

iterator = love.filesystem.lines( name )

Arguments

string name
The name (and path) of the file

Returns

function iterator
A function that iterates over all the lines in the file

See Also