I am appending strings to an array so I can later output that array to a file, but after each new append, the 1st character is a space. I do not want that space, how do I remove it?
Here is my code sample:
$store += @('sample' + "`r`n")
$store += @('other' + "`r`n")
$store += @('new')
write-host $store
This outputs
sample
other
new