This function is off the release 6 CD, out of the file called Toolbox file handling: DIM AS INT ioErr LOCAL FN NewFile (pb AS PTR, fNamePtr AS PTR TO STR31, Vol AS INT, Perm AS INT) ioErr = FN OpenFile(pb, fNamePtr, Vol, Perm) LONG IF ioErr = _FnfErr ioErr = FN PBCreateSync(pb) LONG IF ioErr = _noErr ioErr = FN PBOpenSync(pb) END IF XELSE LONG IF ioErr = _noErr & pb +_ioMisc, 0 ioErr = FN PBSetEOFSync(pb)'Clear Out File END IF END IF END FN = ioErr Has it been upgraded for OS X? The reason I'm asking is because I use earlier versions of those functions in that file in my CGIs, and I want to start making them OS X compliant. --Steve Steven J. Stratford, InterNetyx.com http://www.internetyx.com Web Site hosting services CGI shareware for Mac/WebStar servers Custom CGI programming