Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $contents = Get-Content scores.csv
  2. $rows = @()
  3. ForEach ($line in $contents) {
  4.     $columns = $line -split ","
  5.     $rows += , $columns
  6. }
  7.  
  8. For ($row=0;$row -lt $rows.Length;$row++) {
  9.     "=============="
  10.     $output = ""
  11.     For ($column=0; $column -lt $rows[0].Length;$column++) {
  12.         $output += "$($rows[$row][$column]) | "
  13.     }
  14.     $output
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement