For any case you have to find coresponding tool. Any tool isn't universal for everything And cause I don't need to do your work and your work isn't related to PSPad, you need to find another forum.
In your case I suggest you to start with databases. You can store your file content as database records, index it and manipulaye content with data manipulation language. -- <https://forum.pspad.com/read.php?2,72932,72936> PSPad freeware editor https://www.pspad.com
