Iterate over the lines in a file.
== Function ==
=== Synopsis ===
<source lang="lua">
iterator = love.filesystem.lines( name )
</source>
=== Arguments ===
{{param|string|name|The name (and path) of the file}}
=== Returns ===
{{param|function|iterator|A function that iterates over all the lines in the file}}
=== Example ===
<source lang="lua">
local highscores = {}
for line in love.filesystem.lines("highscores.lst") do
  table.insert(highscores, line)
end
</source>
== See Also ==
* [[parent::love.filesystem]]
[[Category:Functions]]
{{#set:Description=Iterate over the lines in a file.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|love.filesystem.lines}}