We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes you just want a Seq[Seq[String]] from a csv file. The documentation/examples do not seem to support this core functionality.
The text was updated successfully, but these errors were encountered:
scala> val csv = """1,2,3 | 4,5,6""" csv: String = 1,2,3 4,5,6 scala> new CSVReader(csv).toList res7: List[Array[String]] = List(Array(1, 2, 3), Array(4, 5, 6))
This is a documentation issue I think. CSVReader is an Iterator. It copies OpenCsv's interface pretty closely.
Sorry, something went wrong.
scala> new CSVReader(new java.io.StringReader(csv)).toList res13: List[Array[String]] = List(Array(1, 2, 3), Array(4, 5, 6))
There must be some implicit going on in the first example. Use the second.
Thanks! very helpful.
No branches or pull requests
Sometimes you just want a Seq[Seq[String]] from a csv file. The documentation/examples do not seem to support this core functionality.
The text was updated successfully, but these errors were encountered: