[SOLVED] How to read a specific line of a file
Posted: Sat Jun 15, 2013 9:03 pm
EDIT: I'm an idiot and got it working.
Alright, get yourselves ready for a noobie question.
I don't understand how I'd read a specific line of a .txt file. I'm looking to draw lines of dialogue from a text file outside of my main script, so currently I'm defining the file like this...
...and then I assume I have to use love.filesystem.read to get the text from it, but the wiki doesn't say how to get a specific line from it. Is that possible or do I need to approach this a different way?
Alright, get yourselves ready for a noobie question.
I don't understand how I'd read a specific line of a .txt file. I'm looking to draw lines of dialogue from a text file outside of my main script, so currently I'm defining the file like this...
Code: Select all
jewelText = love.filesystem.newFile ("library/text/jewelText.txt")