filename - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


type/filename

check for an object of type filename

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(e, 'filename')

Parameters

e

-

any expression

Description

• 

The call type(e, 'filename') checks whether the expression e may be a valid file name.  An expression is defined to be of type filename if it is either a string or one of the two special names terminal and default.

• 

Note that this type check does not verify that a given string refers to an existing file.  Nor does it determine whether a string may validly represent a file on the current operating system.

Examples

typefoobar,filename

true

(1)

typeterminal,filename

true

(2)

typedefault,filename

true

(3)

typefoobar,filename

false

(4)

See Also

file

FileTools

iolib

type

type/filedesc

type/string

type/symbol