Code: Select all
function load()
myFile = love.filesystem.newFile("data.txt")
love.filesystem.open(myFile)
myString = love.filesystem.lines(myFile)
end
function update()
end
function draw()
love.graphics.draw(mySring, 50, 50)
end
1) I'm only reading from a single source and that I already know the name of the data file I'm trying to read.
2) I want to read every single line from the file all at once.
3) I want to store the read lines in an array.
None of that is true for my project. So what am I not understanding here? Where am I falling down?