Basic Read Write
These examples are a quick introduction to performing basic IO using the Scala IO API
Java To Scala Right Way
The right way to convert java IO objects to Scala IO objects
import scalax.io.Resource
val in = Resource.fromReader(new StringReader("hello"))
val numVowels = in.chars.filter("aeiou" contains _).size
// resource can be reused because the *creation* of the reader is passed to fromReader
// the creation code is captured so Resource can instantiate a new reader for each use of the resource
val numNumbers = in.chars.filter('0' to '9' contains _)