Last active
November 3, 2022 18:17
-
-
Save amka/3ffcb1902b4c69932dbe1ad1334f5f30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'package:csv_reading/csv_reading.dart' as csv_reading; | |
void main(List<String> arguments) { | |
if (arguments.isEmpty) { | |
print("Usage: csv_reading path/to.csv\n"); | |
exit(1); | |
} | |
final path = arguments[0]; | |
final lines = csv_reading.readCsvSync(path); | |
lines?.forEach((element) => print(element)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment