Maybe it would make sense to use [scala.io.Source](http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/index.html#scala.io.Source), it handles both line endings.