Hi folks,
I'm on Powershell since a week now, so I still got typical beginner problems. This is my current one:
I got a two dimensional array. Let's call it $array with the values 1, 2 and 3 in the first row an a, b and c in the second.
Now I want to put the content of the array in a csv in the following order:
line 1: 1;2;3
line 2: a;b;c
How can I achieve that? I think I need an output variable for each line, but I'm getting errors by filling that one. This is one of my several tests with combinations of brackets and quotes:
foreach ($row in $arrayΎ .. ($array.count -1)]) {
$output = "$row[0];$row[1];$row[2]"
Write-Output $output | Out-Host
}
Can you guys help me?