Read a particular line in a text file

That way I read a particular line in a text file. I have seen that the only way to do it incrementally with “* l”. 

Is there another way? 

Adding a prefix, suffix, infix?

I suggest reading the file into a table and accessing the table, but if you really want to seek a specific line in a file, try this:

http://www.tutorialspoint.com/lua/lua_file_io.htm

Look for the word seek.

Thanks for your input. It’s great. But I find the way to “Seek” going to or coming from the lines of text. I tried it and so far it does with characters, but no lines. I’ll keep trying. I can not believe something so simple has to do it in such a complicated way.

I suggest reading the file into a table and accessing the table, but if you really want to seek a specific line in a file, try this:

http://www.tutorialspoint.com/lua/lua_file_io.htm

Look for the word seek.

Thanks for your input. It’s great. But I find the way to “Seek” going to or coming from the lines of text. I tried it and so far it does with characters, but no lines. I’ll keep trying. I can not believe something so simple has to do it in such a complicated way.