What is Mighty-csv?
Mighty-csv is a csv library for Scala based off of the open-csv project. The aim of the Mighty-csv project is to allow users to easily handle csv files.
Adding Mighty-csv depedency in SBT.
To tell sbt about a dependency on mighty-csv, add the appropriate library dependency to your build.sbt file (or a Scala build file):
// FOR SCALA 2.9 ONLY!
libraryDependencies += "com.bizo" % "mighty-csv_2.9.1" % "0.2"
// FOR SCALA 2.10 ONLY!
libraryDependencies += "com.bizo" % "mighty-csv_2.10" % "0.2"
Easily Read CSV Files!
Users can easily read in csv files (with or without headers):
import com.bizo.mighty.csv._
// reading a csv file (without headers) from filepath
val rows: Iterator[Array[String]] = CSVReader("filename.csv")
// reading a csv file (WITH headers) from InputStream
val inStream = {... get input stream ...}
val dictRows: Iterator[Map[String, String]] = CSVDictReader(inStream)
Rather Drive Stick?
If you prefer to not use the automatic generator, push a branch named gh-pages
to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.
Authors and Contributors
Tony Tran (@t-pleasure)