Skip to content

file.readLines

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Read all lines from a text file, returning a list of strings

Parameters

Parameter Default Value Note
path

Return value

Condition Return Value
(always) list

Notes

Example

import "file"
lines = file.readLines("data.txt")
for line in lines
    print line
end for

Clone this wiki locally