-- Simple program to demonstrate the use of luabarcode write "\nPlease enter the filename to be read: " code = read("*l") write "\nType of image (jpeg or png): " type = read("*l") r,e = readbarcode(code, type) if r == nil then error(e) end write("\n\nThe image contains "..r.."\n")