Important: The information in this document is obsolete and should not be used for new development.
File and Directory Manipulation Routines
The File Manager includes a set of file and directory manipulation routines that acceptFSSpec
records as parameters. Depending on the requirements of your application and on the environment in which it is running, you may be able to accomplish all your file and directory operations by using these routines.Before calling any of these routines, however, you should call the
Gestalt
function to ensure that they are available in the operating environment. (See "Testing for File Management Routines" on page 1-14 for an illustration of callingGestalt
.) If these routines are not available, you can call the corresponding HFS routines.
Subtopics
- Opening, Creating, and Deleting Files
- Exchanging the Data in Two Files
- Creating File System Specifications