Thursday, February 28, 2008

Sudden Death Challenge: Event 2

 
$vertical = @(cat C:\Scripts\vertical.txt) 
$text=""

for($i=0; $i -le 3; $i++){
    0..($vertical.length-1) | foreach { $text+=$vertical[$_][$i] } 
}

$text
 
# result
The 2008 Winter Scripting Games!

No comments: