Lua--parse text from .txt file and store the values
snippet in lua

Lua--parse text from .txt file and store the values

user6576

while true do
  local dollars,tickets = myfile:read("*n","*n")
  if dollars==nil or tickets==nil then break end
  print(dollars)
end