Replace File by Reader, use scala-arm