Append
echo New Text >> file.txt
Append to end
Add-Content -Path file.txt -Value "New Text"
Append to end
"Text" | Out-File -FilePath C:\file.txt -Append
Append to end
[System.IO.File]::AppendAllText("C:\file.txt", "Text")
Append to end using .NET
Last updated
Was this helpful?