powershell write return line in file 1

powershell write return line in file

Add-Content file.txt "`r`n"

Here is what the above code is Doing:
1. It’s creating a file called file.txt in the current directory.
2. It’s adding the text “Hello World” to the file.
3. It’s adding a new line to the file.

Similar Posts