use scala-io