||THE HYPERCARD CENTER
Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
open file fileName
open file command opens the specified file so that you can read data from it and write to it. Usually, the file is an ASCII text file opened to allow importing or exporting text. If the file doesn’t exist, HyperCard creates it.
close file command to close files after you’ve opened them.
Note: You must provide the full path name of the file if it’s not at the same directory level as HyperCard.
If HyperCard has problems opening the specified file, it sets
the result as follows:
Nonexistent file that can't be created:
Existing file already open:
Can't create that file.
Other error opening file:
File is already open.
Can't open that file.
An expression that evaluates to a text string that is also a valid Macintosh filename.
"HD20:Wally's Stacks:my stack"
"my file alias"
« open | HyperTalk Reference
| open printing »
(March 24, 2022)
Switch to Modern View