Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $contents = Get-Content scores.csv
- $rows = @()
- ForEach ($line in $contents) {
- $columns = $line -split ","
- $rows += , $columns
- }
- For ($row=0;$row -lt $rows.Length;$row++) {
- "=============="
- $output = ""
- For ($column=0; $column -lt $rows[0].Length;$column++) {
- $output += "$($rows[$row][$column]) | "
- }
- $output
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement