open - set myfile = new(xtra ‘‘fileio‘‘) set thefile = displayopen( myfile ) set myfile = 0 save - set myfile = new(xtra ‘‘fileio‘‘) set thefile = displaysave( myfile, ‘‘title‘‘, ‘‘default file name‘‘) set myfile = 0
2. buddy api:
open - set thefile = bagetfilename(‘‘open‘‘, ‘‘c:‘‘, ‘‘filename‘‘, ‘‘filters│*.*‘‘, flags, ‘‘instruction‘‘, allow folder selection, x-location, y-location ) save - set thefile = bagetfilename( ‘‘save‘‘, ‘‘c:‘‘, ‘‘filename‘‘, ‘‘filters│*.*‘‘, flags, ‘‘instruction‘‘, allow folder selection, x-location, y-location )
3. filextra:
open - set thefile = fileopendialog(initialdirectory, filterstring, dlogtitle, createprompt, filemustexist) --on the mac, only the initial directory and filterstring are valid save- set thefile = filesaveasdialog(initialdirectory, filename, dialogtitle, overwriteprompt) --on the mac, only the initial directory and filename, and prompt are valid.
4. mui xtra:
open - set amuiobj = new (xtra ‘‘mui‘‘) set filestring = ‘‘open this file‘‘ set thefile = fileopen(amuiobj, filestring)