Lua not producing table of functions (IO API)
- by ArtOfCode
I'm working on a basic project in Lua. I've been trying to get data from files using the IO API (as defined here), but when I open a file and give it a handle, it doesn't seem to return a table of functions.
The (erroneous bit of) code:
local unread = fs.list("email/"..from.."/")
local send = ""
for _,file in ipairs(unread) do
local handle =…