kotlin-csv icon indicating copy to clipboard operation
kotlin-csv copied to clipboard

Pure Kotlin CSV Reader/Writer

Results 22 kotlin-csv issues
Sort by recently updated
recently updated
newest added

**Problem** If we use [`readNext` method](https://github.com/doyaaaaaken/kotlin-csv/blob/a59e2187d89d55c585511e16073eb1cfe32d05a5/src/commonMain/kotlin/com/github/doyaaaaaken/kotlincsv/client/CsvFileReader.kt#L35), some options (e.g. `excessFieldsRowBehaviour` option) are bypassed and invalid. There does not appear to be a use case for this method, so we are...

under discussion

I realize that generally it doesn't make sense to keep an input stream open when the end of the stream has been reached, but I'd like to read multiple CSV...

good first issue
feature request

Hey there, thank you very much for this gerat project. Microsoft applications, for some reason, seem to require a BOM to parse for example UTF-8 files correctly, even though there...

help wanted
good first issue

https://kotlinlang.org/docs/reference/multiplatform.html

design phase

`readAllWithHeader` yields a `List` and hence empty columns are being read as empty strings, so that we get `""` for both `col1` and `col2` in the following example: ``` "col1","col2"...

enhancement
feature request

I noticed that functions using lambdas aren't utilizing Kotlin's [`inline`](https://kotlinlang.org/docs/reference/inline-functions.html) keyword. This could have avoidable performance impacts. Take, for example, this [function](https://github.com/doyaaaaaken/kotlin-csv/blob/master/src/commonMain/kotlin/com/github/doyaaaaaken/kotlincsv/dsl/CsvReaderDsl.kt): ```kotlin fun csvReader(init: CsvReaderContext.() -> Unit = {}):...

performance improvement

**When running this file through the parser** `ID|Headline|State|Billable_Indicator|Ticket_Type|CR_Source|Severity|Priority_Requested|Submitter|AssignTo|Owner|BusinessArea|ChangeType|DateSubmitted|DateClosed RQ_SS041348|WGHT tements- Change "Grains" to "Members"|01A-SW_Processing|Y|CR|External|3-Medium||Shagh Just|Lios, Yun |Shagh, Just |11.00-Unknown|CHIP|3/15/2022 5:53:44 PM|` **Seeing an error as below** > Aug 30 00:10:57...

It is required to create a common reading and writing rules. For example, TSV rule could look like this: ```kotlin val TSV: CsvContext.()->Unit = { charset = "ISO_8859_1" quoteChar =...

It will probably require exposing CsvFileWriter ability to write a single line.