Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
The write
command copies text to a file. You must have already opened the file with the open file
command, and you should close it when writing is completed with the close file
command.
The first write
command after opening a file begins at the start of a file unless you use the at integer
option, with integer
as the character position within the file where writing is to begin.
The -integer
option begins writing at integer
characters from the file's end.
Warning: HyperCard does not ask if you want to write over existing text.
Subsequent write
commands append text to the file’s contents after the last character written until you close the file.
Note: You must provide the full path name of the file if it’s not at the same directory level as HyperCard.
An expression that evaluates to a text string.
A text expression can be a literal string surrounded by quotation marks or the value of a container.
For example:
See also: background, bkgnd, button, card, field, menu, menuItem,
and stack
An expression that evaluates to a text string that is also a valid Macintosh filename.
For example:
An expression that evaluates to a positive or negative integer or to zero. For example:
In AppleScript, integer is a value class.