Skip to content

Instantly share code, notes, and snippets.

@rccc
Created March 20, 2023 14:46
Show Gist options
  • Save rccc/8b71bbbc735794d6617a64517833df41 to your computer and use it in GitHub Desktop.
Save rccc/8b71bbbc735794d6617a64517833df41 to your computer and use it in GitHub Desktop.
import os
import encoding.csv
fn main(){
csv_name := 'test.csv'
content := os.read_file(csv_name) or {panic(err)}
mut reader := csv.new_reader(content)
reader.read()! // Skip the first line
for {
line := reader.read() or {break}
println(line)
}
}
@rccc
Copy link
Author

rccc commented Apr 5, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment