FSpOpenResFile
FSSpec *spec ; specification record SignedByte permission ; permission code (see below) returns reference number of the file (or -1 if an error)
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
FSpOpenResFile function failed to open the resource file, the reference number returned is -1. Call the ResError function to check for errors.