Sharkey@ccu.umanitoba.ca (07/30/90)
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 * *
*******************************************************************************