Advertisement
alestane

Dictionary loader (module)

Jan 17th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local dictTable = {}
  2.  
  3. local path = system.pathForFile("wordlist.txt",system.ResourceDirectory)
  4. for line in io.lines(path) do
  5.     dictTable[line] = true
  6.     print(tostring(line))
  7. end
  8.  
  9. return dictTable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement