wiki:Documentation/ARexxAPI/WRITELETTER

Version 4 (modified by damato, 3 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
/* Set the active Write window */
MAILWRITE WINDOW 0

/* Load a file into the editor */
WRITELETTER 'mail:templates/t2' NOSIG
BUGS
SEE ALSO
MAILWRITE