Io.type

From GiderosMobile
Revision as of 11:03, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Checks whether obj is a valid file handle. Returns the string "file" if obj is an open file handle, "c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

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.

(string), = io.type(obj,)

'obj: (any) object to test '
Returns (string) string representing the state of the object or nil if not file handler