Futurebasic/Language/Reference/def createresfile

From Wikibooks, open books for an open world
Jump to navigation Jump to search

DEF CREATERESFILE Statement[edit | edit source]

DEF CREATERESFILE[edit | edit source]

Statement[edit | edit source]

✔ Appearance ✔ Standard ✔ Console

Syntax[edit | edit source]

DEF CREATERESFILE(fileName$)

Revised[edit | edit source]

August 2002 (Release 7)

Description[edit | edit source]

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[edit | edit source]

DEF OPEN; OPEN; USR OPENRFPERM