SHARE
TWEET

Untitled

a guest Oct 10th, 2019 96 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top