MSGTOFILE conf,msg_no,filename
Writes a message into a file.
Example:
;Using SCANMSGHDR to search for a message
MSGTOFILE 0,200,"d:\msg1.txt" DISPFILE "D:\msg1.txt",DEFS
This statement will take the given message and write it to a text file. The file's first 15 lines will contain standard header information. (One field per line) The headers are formatted to make parsing easier. The 16th line will state how many extended headers are present. The following line(s) will contain extended headers. (one per line) Finally, after the extended headers, will be a line containing “Message body:”. Everything after that is the body of the message.
See also: ScanMsgHdr, DispFile, HDR_… Consts