kotlin-csv
kotlin-csv copied to clipboard
Pure Kotlin CSV Reader/Writer
**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...
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...
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...
`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"...
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 = {}):...
**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.