I’m trying to read a list of items from a file into an array. I find that it works fine with only one item, but if I have more than one item in the file then I get a crash.
My relevant code:
local imageNumber = 1
local contents = file:read( "\*a" )
local myImages = {
contents
}
imageSlide = display.newImage( myImages[imageNumber], baseDir )
Any help would be greatly appreciated. [import]uid: 10903 topic_id: 5089 reply_id: 305089[/import]