Import file as an array
Hi,
I have the following in a script that is working fine using the following:
$string = @ (“xxx”, “yyy”, “zzz”)
After I changed to the following that get from a file, it does not work:
$string = @()
$string += import-csv C:tempfile.csv
The content of file.csv
xxx
yyy
zzz
Can anyone advise how to resolve?
Hi, I have the following in a script that is working fine using the following:$string = @ (“xxx”, “yyy”, “zzz”) After I changed to the following that get from a file, it does not work:$string = @()$string += import-csv C:tempfile.csv The content of file.csvxxxyyyzzz Can anyone advise how to resolve? Read More