I think the scala-io implementation was probably a little safer.