Basic Read Write
These examples are a quick introduction to performing basic IO using the Scala IO API
Read Csv File
read comma separated file
import scalax.io.Resource
// see codec examples in scala io core for details on why there is an implicit codec here
implicit val codec = scalax.io.Codec.UTF8
val resource = Resource.fromBufferedReader(new BufferedReader(new FileReader("csv")))
val records: Traversable[Array[String]] = resource.lines().map (_ split ',')
// after this it is normal scala collection type operations