SYNOPSIS
io.type(obj)
DESCRIPTION
Checks whether obj is a valid file handle. Returns the string "file" if obj
is an open file handle, "closed file" if obj is a closed file handle, or nil if
obj is not a file handle.
RETURN VALUE
Returns a string or nil.