QuickDraw 3D provides a routine that you can use to create a file object.
You can use the Q3File_New function to create a new file object.
TQ3FileObject Q3File_New (void);
The Q3File_New function returns, as its function result, a new file object. If Q3File_New cannot create a new file object, it returns the value NULL .
kQ3ErrorOutOfMemory