io.type

Returns type of file handle

Prototype

s = io.type (f)

Description

Returns a string which is one of:

f = io.tmpfile ()
print (io.type (f))
f:close ()
print (io.type (f))

-->

file
closed file

Lua functions

Topics