io.file not working

Is it even included in GLua? if not how to i include it?

I can’t do what i want with these current file functions, it’s too limited and it’s missing a lot of functions.


The file library is good enough.

then how do i loop through all lines of a file in GLua?

standard lua:

function getlines()
	for lol in io.lines("file.txt") do

I infact already made a post about that certain thing, got no answer yet though.

You’ll have to split your string using string.Explode or string.gmatch, I’ll bump my post.

i could do that, but i’ll wait for a native function similar to io.lines(). my current project can wait.

go download io if you want that. Its in the binary modules section.