I am trying to copy csv file contents and append to a text file. The copying and appending works, but the appended format is weird.
This is the command I use:
Get-Content -Path myfile1.csv | Select-object -skip 1 | Out-File mynewfile.txt -Append
The appended text looks like this when opened in notepad:
1 0 2 3 8 9, 1, A B C, P 2 instead of
102389,1,ABC,P2 There's a space between every character. Just renaming the .csv to .txt didn't help.