riff
riff copied to clipboard
Implement builtin function to iterate over lines in a file
-
lines(file)
-
file
is an already open file object;file
is not automatically closed once EOF is reached
-
-
lines("filename")
- File at path
"filename"
is opened, and closed for the user automatically
- File at path
Depends on:
- #22
for ln in lines("filename") {
...
}