How do you instantiate a scala.util.parsing.input.Reader to read from a file? The API mentions in passing something about PagedSeq and java.io.Reader, but it’s not clear at all how to accomplish that.
How do you instantiate a scala.util.parsing.input.Reader to read from a file? The API mentions
Share
You create a FileInputStream, pass that to an InputStreamReader and pass that to the apply method of the StreamReader companion object, which returns a StreamReader, a subtype of Reader.