love.filesystem.lines
Итерируйте строки в файле.
Функция
Синопсис
iterator = love.filesystem.lines( name )
Аргументы
string name- Имя (и путь) файла
Возвращаемое значение
function iterator- Функция, которая итерирует все строки в файле
Пример
local highscores = {}
for line in love.filesystem.lines("highscores.lst") do
table.insert(highscores, line)
end См. также
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.filesystem.lines