Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!van-bc!ubc-cs!alberta!ccu!umfonta6 From: Sharkey@ccu.umanitoba.ca Newsgroups: comp.sys.mac.programmer Subject: File Handling :( Message-ID: <1990Jul30.005044.7902@ccu.umanitoba.ca> Date: 30 Jul 90 00:50:44 GMT Sender: umfonta6@ccu.umanitoba.ca (Robert Fontaine) Distribution: na Organization: University of Manitoba, Winnipeg, Canada Lines: 36 Hi Mac'ers, I'm attempting (reads failing) to modify a ansi program into an XCMD. I'm using Think C 4.02 to compile. My problem is using FSOpen function. I'm using the ANSI A4 lib but it doesn't support file io. So, normally I use if (( ifp = ("filename", "r")) == NULL ) whoops; else However I think I have to use if ( FSOpen(filename,vRefnum, &refNum) != noErr Except all the example code I've found uses the SFGetfile routines. And they do it as an application ( RE: miniedit example in Think). I've spent the last several days banging at it, but I'm afraid that my brain is not functioning. Can you give me a hand... :-( Robert. ******************************************************************************* * Robert Fontaine * "Who, me ? " * * Univeristy of Manitoba * "No, couldn't be " * * Winnipeg, Manitoba * "Then who stole the cookie?" * * (204) 474-8975 * Crunch, Crunch " mfphrrst.." * * umfonta6@umanitoba.ca * * *******************************************************************************