FSpOpenResFile
FSpOpenResFile Open resource file specified by an FSSpec
#include <Resources.h> Resource Manager
short FSpOpenResFile(spec, permission );
FSSpec *spec ; specification record
SignedByte permission ; permission code (see below)
returns reference number of the file (or -1 if an error)
The FSpOpenResFile function creates the file named in the spec parameter.
The FSpOpenResFile function lets you open a resource file without creating a
working directory. The permission parameter can contain any one of the
following constants:
fsCurPerm whatever is currently allowed
fsRdPerm request for read permission only
fsWrPerm request for write permission
fsRdWrPerm request for exclusive read/write permission
fsRdWrShPerm request for shared read/write permission
More information about these constants can be found in the
Low-Level File Manager section of the File Manager. If the
FSpOpenResFile function failed to open the resource file, the reference
number returned is -1. Call the ResError function to check for errors.