Get File - Maple Help

Maplets[Examples]

 GetFile
 display a Maplet application that allows the user to choose a file

 Calling Sequence GetFile(opts)

Parameters

 opts - equation(s) of the form option=value; where option is one of approvecaption, filefilter, filterdescription, or title; specify options for the Maplet application

Description

 • The GetFile(opts) calling sequence displays a file dialog that allows the user to choose a file.  The value returned is the string corresponding to the chosen file.  If a file is not selected, an exception is raised.
 • The GetFile sample Maplet worksheet describes how to write a Maplet application that behaves similarly to this routine by using the Maplets[Elements] package.
 • The opts argument can contain one or more of the following equations that set Maplet application options.
 approvecaption = string or symbol
 The text that appears on the button that is clicked to select the file. By default, the value is Open.
 filefilter = string or symbol
 The extension of the files that display.  By default, the value is "*", that is, all files are shown. It can also be used with other extensions, for example, "mws", "m", or "mpl".
 filterdescription = string or symbol
 A description of the filefilter. By default, the value is the value of the option filefilter.
 title = string or symbol
 Specifies the Maplet application title.  By default, the title is Get File.

Examples

 > $\mathrm{with}\left(\mathrm{Maplets}\left[\mathrm{Examples}\right]\right):$
 > $\mathrm{GetFile}\left('\mathrm{title}'="Get File"\right)$
 ${"/user/maple/maple.lib"}$ (1)