OpenDF
OpenDF Create an access path to the data fork of a file
#include <Files.h> File Manager
OSErr OpenDF( filename, vRefNum , refNum);
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
returns Error Code; 0=no error
OpenDF creates an access path to the data fork of a file. It is almost identical
to FSOpen
filename name of the file to open
vRefNum a volume or working directory reference number
refNum points to a path reference number
Returns: an operating system Error Code. It will be one of:
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

Notes: The difference between OpenDF and FSOpen is that FSOpen can open both
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 (.)