Hello. I have a problem with the search for a word in a dictionary. The research work when I try the application in the corona simulator but on the device (android) does not work. The code is as follows:
local function BuildDictionary( )
local path=system.pathForFile(“parole.txt”)
local file=io.open(path,“r”)
if file then
for line in file:lines( ) do
dictionary[line]=true
end
io.close( file )
end
end
local function CheckWord()
return dictionary[word]
end
Any idea?