type/filedesc - check for an object of type filedesc
|
Calling Sequence
|
|
type(e, 'filedesc')
|
|
Description
|
|
•
|
The call type(e, 'filedesc') checks whether the expression e may be a valid file descriptor. File descriptors are expressions of types integer, string, or symbol.
|
•
|
Note that this type check is a surface type check only. It does not verify that the expression e actually refers to an open file.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?