Files
kotlin-fork/samples/csv_parser/README.md
T
2017-03-23 17:15:39 +03:00

507 B

CVS parser

This example shows how one could implement simple CSV reader and parser in Kotlin. A sample data [European Mammals Red List for 2009] (https://data.europa.eu/euodp/en/data/dataset?res_format=CSV) from EU is being used.

To build use ./build script without arguments (or specify TARGET variable if cross-compiling).

To run use

./csvparser.kexe ./European_Mammals_Red_List_Nov_2009.csv 4 100

Which will print fifth column (Family, zero-based index) in first 100 rows of the CSV file.