Hi,
When I am trying to output to a CSV or txt file
$header = @();
$header += "ORDERHEAD", $A[3], $today, "", "", "DEFABUK", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "AMLY", "", "", "", "", "", "", "", ""
$header | Export-Csv -Path c:\test\test.csv -Delimiter ',' -NoTypeInformation
It outputs
"Length"
"9"
"9"
"10"
"0"
"0"
"7"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"4"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
So it is missing the first string and then just outputting attributes any help appreciated