Read from txt file by line than output to list.

I would normally do this by using io.open, but it seems garrysmod doesn’t let me do that. I’ve tried file.Read() but couldn’t get it to go by line, Any ideas.

[lua]local f = file.Read(“your_file.txt”)
for _,v in pairs(string.Explode("
",f)) do
print(v)
end[/lua]

String explode using newline.

Ah, thanks. Just need to split each line too, but i think i can do that.