Read from txt file by line than output to list.

I would normally do this by using, 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

String explode using newline.

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