Technology Insights

Append Or Prepend Text To Every Line In Text File With Notepad++

When I need to use Windows either for Microsoft Office products or some other reason I find myself in Notepad++ a lot. Notepad++ is a great free tool that provides a ton of functionality including the ability to easily add plugins, etc. One great feature of Notepad++ is the Regular Expression capabilities when using find/replace. If you wanted to add data to the beginning of each line or add data to the end of each line you can easily do so using find and replace with Regular Expressions enabled as shown in the below examples.

Technology Insights

Append Text To Each Line In Notepad++, Prefix Text To Every Line In Notepad++

Notepad++ is one of my favorite applications on Windows because of all of the functionality it provides. One thing I needed to do recently was to add text to the end of each line in a text file but I wasn’t sure exactly how to do it without a little research. Below is information on how to both append data to every line in a text file and how to prefix data to every line in a text file.