linc@tongue1.Berkeley.EDU (Linc Madison) (01/31/91)
I know this is an absolute abomination, but I'm writing a program in Fortrash for school, and it needs to save two data files on execution. So far, I've done this with the standard Fortrash method of OPEN(UNIT=1, FILE=fname1) OPEN(UNIT=2, FILE=fname2) but I'd much rather do it with something like SFPutFile or SFPPutFile, especially so I can assure unique filenames. The Absoft manual describes calling various Toolbox routines, but only discusses the routines for drawing windows, text, polygons, menus, and such; nothing about SF calls. There is an include file that provides definitions of integer constants including SFPUTFILE, but my attempt to insert a call to it by using the format CALL toolbx(SFPUTFILE, [args] ) causes unexpected quitting of the application. I've been working from the Absoft manual (which doesn't recognize the existence of the SF package), an old "promo" copy of Inside Macintosh (which doesn't know about HFS -- although I browsed Inside Mac v.1 in a bookstore, and it didn't either!), my manuals for THINK C (yes, I own a real language, but my program needs to be read by other engineering types), and a book about using the Toolbox from C. It's all a rather hodge-podgish sort of effort. If anyone out there has used MacFortran (or any other Macintosh Fortran implementation) to call Standard File, please e-mail me any tips you have. (In particular, how do I relate the files to different device numbers for WRITE statements?) -- Linc Madison = linc@tongue1.berkeley.edu