-- $Id: spellcheck.lua,v 1.2 2001/01/23 01:30:42 doug Exp $ -- http://www.bagley.org/~doug/shootout/ -- based on code from Roberto Ierusalimschy -- contributed by Roberto Ierusalimschy local dict = {} for line in io.lines("Usr.Dict.Words") do dict[line] = true end for word in io.lines() do if not dict[word] then print(word) end end