s = io.type (f)
Returns a string which is one of: file - an open file handle closed file - a closed file handle nil - not a file handle f = io.tmpfile () print (io.type (f)) f:close () print (io.type (f)) --> file closed file
f = io.tmpfile () print (io.type (f)) f:close () print (io.type (f)) --> file closed file