wiki:Documentation/ARexxAPI/WRITELETTER

Version 2 (modified by AmigaPhil, 10 months ago) (diff)

--

Languages:

WRITELETTER

NAME

WriteLetter -- Load a file into the internal text editor.

TEMPLATE

FILE/A,NOSIG/S

FUNCTION

Loads a file into the internal text editor, completely replacing its current contents, if any.

INPUTS

FILE/A - file to load; only a text file will be accepted
NOSIG/S - prevent the addition of any signature (V2.0)

RETURNS

RC is set to 10 if the specified file could not be opened or if no Write window was previously specified as "active" with MAILWRITE ?.

NOTES

EXAMPLE

/* Load a file into the editor */

MAILWRITE WINDOW 0 /* Set the active Write window */
WRITELETTER 'mail:templates/t2' NOSIG

BUGS

SEE ALSO

MAILWRITE ?