You are here: start » ppl » statements » msgtofile

MSGTOFILE conf,msg_no,filename

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

ppl/statements/msgtofile.txt · Last modified: 2019/04/16 14:00
CC Attribution 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International