I understand.
The best method is load content of the file into memory, manipulate it as you
need and replace whole text back. If possible.
Each manipulation in PSPad causes writing into undo/redo buffers e.t.c.

-- 
<http://forum.pspad.com/read.php?2,65099,65102>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem