Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

How to put two elements of a array in one string

$
0
0

Hi,

Powershell is giving me a headache today. I need to create a text file (or PDF) and write 6 array's so that there are two arrays next to eachother, and that 3 times. Like this:

TITLE

Array1               Array2

abc , 15              hdu , 6

slt , 11                sky , 9

Array3               Array4 

And so on, what ever I try powershell writes the first element of array1, goes to the next line and writes the first element of array2. Or first array1 and then Below, the next arrays. like:

abc , 15   < first array

hdu , 6    < second array

or:

array1

array2

array3

and so on.

 All the array's have the same size and I need to "format" some text into the output as well like the title above the arrays.

Any help would be appriciated.

Robbert.


Viewing all articles
Browse latest Browse all 8583

Trending Articles