Douglas Stemen wrote: > > My folder ID is from FILES$. I have read Appendix H. I also understand that > OS X uses a different data block format for opening/creating files than that > contained in the pre-OS X parameterblock. I am starting to read IM to learn > more about the new toolbox routines, but was hoping someone had experience > with this to reduce my time. > > I still don't find a clear explanation for specifically what FN > FBWDToPBWD(parameterblock) does. It is in the example programs but as far as > I can see not documented in the manuals. > > The following toolbox access routines allow the user to directly access data > files. They work fine in R6, except when compiled under carbon they create a > "function must be defined before using" and other compile errors. > > FN OPEN(PBlk&) > FN CREATE(PBlk&) > FN FLUSHVOL(PBlk&) > > In OS X what is the correct syntax for these routines, if any? > Doug, I have no idea if that will work but you could try the following calls that are available in Carbon: ioErr% = FN HOpen(PBlk&) ioErr% = FN HCreate(PBlk&) ioErr% = FN FlushFile(PBlk&) You probably will have to use FBWDToPBWD(PBlk&) before calling the functions above. -- Cheers, Alain ------------------------------------------------------ Program different E = FB^3 FutureBASIC^3 in Europe: http://euro.futurebasic.com/ ------------------------------------------------------