Preventing newline with Out-File (or Add-Content)

Try using Io.FIle class and method WriteAllText.
For example:
You’ll want [IO.File]::AppendAllText and not WriteAllText since that will override the existing file.
Liked it? Take a second to support admin on Patreon!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.