Powershell Tutorial Online

Powershell with FileSystem append file

Add content from text and from different files are two different things Append content sting from some variable which can be dynamic content.
For adding static content from one or more file also possible in PowerShell.
We have different approaches to achieved this bur Let’s see how we can achieve that in simple way

    get-content Test-File1.txt  >> Out-File-Merge-Of-Test-File1-and-2.txt
    get-content Test-File2.txt  >> Out-File-Merge-Of-Test-File1-and-2.txt