OpenDF
OpenDF
Create an access path to the data fork of a file Str255 filename name of the file to open short vRefNum; a volume or working directory reference number
short *refNum ; points to a path reference number
OpenDF creates an access path to the data fork of a file. It is almost identical filename name of the file to open
vRefNum a volume or working directory reference number refNum points to a path reference number
noErr (0) No error
bdNamErr (-37) Bad name
extFSErr (-58) External file system
ioErr (-36) I/O error
nsvErr (-35) No such volume
opWrErr (-49) File already open for writing
tmfoErr (-42) Too many files open
files and devices, but OpenDF can open only files. Using OpenDF instead of FSOpen when your application is opening a file prevents naming conflicts or ambiguities and ensures that your application can open files whose names
start with a period (.)