This is code from my script:
Code: Select all
line 36 > names = love.filesystem.enumerate("Names/") --I'm not sure if I have to put it as just "Names" or "Names/" with a slash at the end, either way the error showed up.
line 37 > for i=1, #names do
line 38 > names[i]:open('r')
data = names[i]:read()
names[i]:close()
names[i] = data
end
Every time the same error comes up:
- love 2010-08-20 09-15-23-14.png (10.69 KiB) Viewed 1148 times
And I'm not sure how to fix it, I tried to follow the wiki's instructions on how to read a file, kinda got lost in some parts, but according to it I have to open the file for reading, get the data, and I had to assume that I have to close the file before opening another one, what am I doing wrong?