Scala: How to read input from one file while writing output to another file
By Alvin Alexander. Last updated: August 28 2019
Without much introduction or discussion, here’s a Scala example that shows how to read from one text file while simultaneously writing the uppercase version of the text to a second output file: