Open scripting.rtf file in PSPad folder There is example, how to read line by line document open in PSPad. When you read one number (content of one line) into variable, you can use your code to revert it and write it back.
-- <https://forum.pspad.com/read.php?2,73303,73394> PSPad freeware editor https://www.pspad.com