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?
Last edited by Calahagus on Sat Jun 15, 2013 9:59 pm, edited 2 times in total.
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor
The "lines" function does iterate over all lines. So if your text file is really large, it can be slower than if you could just magically get a single line (which you cannot). If your files are so large that it would make a difference in performance, split it up into more files.