regards to your second example
You want to put one line on the begin of file B, what is in the file A?
It's possible, but using PSPad scripting. If you are familiar with JScript,
VBScript, you can switch on PSpad scripting in the program settings / System
integration (in the 32b version only)
There is few scripts wheat can help you, help contains description too.

-- 
<https://forum.pspad.com/read.php?2,77278,77280>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem