top of page
Search

# PowerShell script to add text to a file

You can easily add text to the end of a text file using the PowerShell Add-Content command. So if you have text file like this which has only one line of text:

. . .and you want to add four new lines of text, you can write a PowerShell script like this: