Io.type

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2011.6
Class: io

Description

Checks whether obj is a valid file handle.

(string) = io.type(obj)

Returns the string:

  • "file" if obj is an open file handle
  • "closed file" if obj is a closed file handle
  • nil if obj is not a file handle

Parameters

obj: (any) object to test

Return values

Returns (string) string representing the state of the object or nil if not file handler