< Futurebasic < Language < Reference 
      DEF CREATERESFILE Statement
DEF CREATERESFILE
Statement
✔ Appearance ✔ Standard ✔ Console
Syntax
DEF CREATERESFILE(fileName$)
Revised
August 2002 (Release 7)
Description
DEF CREATERESFILE replaces the obsolete CALL CREATERESFILE which has seen such heavy use in the past. Mac OS X made the call obsolete, but by exchanging the DEF keyword for the optional CALL keyword, you can breath new life into your programs. The DEF version of the call works in all versions of the system software from system 7.x to Mac OS X. If this call is successful, a resource file is created in the current directory. You may set the current directory using FOLDER.
DEF CREATERESFILE may also be used to add a resource fork to an existing file. Creating the resource file does not automatically open it.
See Also
DEF OPEN; OPEN; USR OPENRFPERM
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.