Saving Data

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: Saving Data

Post by Eamonn »

Lemony Lime wrote:I've got it mostly sorted out, but there's one more big problem. How do you read either a specific byte or specific line of a file? Either way works. If it's not possible, then love just can't do what I'm trying to do. love.filesystem.lines and file:read don't work, because they force you to start at the beginning of the file. I need to be able to pick a line or a byte at will and read it directly.
This:
love.filesystem.read( "filename.extention", numOfBytesToRead(number value) )
Hope this helped! :) I don't know how to read a specific line, unless you break it down and read it from a table like I've done.
"In those quiet moments, you come into my mind" - Liam Reilly
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 0 guests