Message Commands

The following command can be used for messages:

 Write


  Write #fd, options

Writes the current message to the specified file, which must be open for output.

By default, this writes the message in mailbox format. This way, you can later open the file with the View Mailbox function ([Alt-M]) in PCC. That is, PCC will automatically prepend a special header to the message text, to later be able to recognize message boundaries. By specifying the second, optional parameter as "r", these headers are omitted and just the raw text is written.

Example:

  Open "msg" & Turn & ".txt" For Output As #1
  ForEach InMsg Do Write #1
  Close #1

This will write all this turn's messages into a file "msgNN.txt".


[ << Previous | Up | Next >> ]

Stefan Reuther <Streu@gmx.de>