Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!usc!apple!dlyons From: dlyons@Apple.COM (David A. Lyons) Newsgroups: comp.sys.apple2 Subject: Re: Standard File I/o Message-ID: <43877@apple.Apple.COM> Date: 11 Aug 90 22:11:42 GMT References: <3901@crash.cts.com> Organization: Apple Computer Inc, Cupertino, CA Lines: 23 In article <3901@crash.cts.com> crew@pro-harvest.cts.com (Chris Wicklein) writes: >Can someone e-mail me some sample source code that shows how to use the >GS's Standard File I/O to return the name of a file selected by the user? I >want to use it as a generic routine to return the names of user selected files >in a utility program, so that the user won't have to type the file's name. I >use Merlin 16+ There should be several examples of using Standard File in the DTS Sample Code that was recently posted to comp.binaries.apple2. Do you have Apple IIgs Toolbox Reference Volume 3? Read all about Standard File in volumes 2 and 3. The best call for you to use is probably SFGetFile2 or SFMultiGet2, depending on whether the user is choosing *one* file or possibly a group of files. -- David A. Lyons, Apple Computer, Inc. | DAL Systems Apple II Developer Technical Support | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.