[quote quote=145427]Great response Kiran. That definitely builds what nearownkira45 is asking for.
I’m curious though, nearownkira45, is that what you wanted? Do you have two correlating CSVs with equal and matching records?
So if the first CSV were like this:
FirstName, LastName
Peter, Griffin
Lois, Griffin
Meg, Griffin
And the second CSV were this:
VoiceActorFirst, VoiceActorLast
Seth, MacFarlane
Alex, Borstein
Mila, Kunis
You’d end up with:
FirstName, LastName, VoiceActorFirst, VoiceActorLast
Peter, Griffin, Seth, MacFarlane
Lois, Griffin, Alex, Borstein
Meg, Griffin, Mila, Kunis
Now maybe this is exactly what you wanted. Maybe not? Do let us know.[/quote]
The solution contributed by the member here so far (THANKS!) is what i generally wanted 90% of the time.
but there also times of the 10% of what I wanted is as below ( non correlating records as u mentioned):
I am outputing some of the RSOP file to powershell console, so for example:
RSOP XML output CSV1 is :
$xmldoc.rsop.ComputerResults.ExtensionData.Extension.SecurityOptions | Select "SettingNumber" | export-csv $file1
RSOP XML output CSV2 is :
$xmldoc.rsop.ComputerResults.ExtensionData.Extension.SecurityOptions.Display | Select "units" ,"DisplayNumber","DisplayString","DisplayBoolean","Name" | export-csv $file2
will output like below:
File1 CSV output:
A
1
2
3
4
5
6
File 2 CSV output:
B C D E F
7 8 9 10 11
12 13 14 15 16
17 18 19 20 21
22 23 24 25 26
The intended output will be like below:
A B C D E F
1 7 8 9 10 11
2 12 13 14 15 16
3 17 18 19 20 21
4 22 23 24 25 26
5
6
There will be 2 empty space as shown above, and the code should be able to process empty field on CSV2 or CSV1 (CSV 2 in this case)
wait…
what does 0… means ? is it a C# code?
I do not recognize it from the symbol below: