Create FileIO.java

FileIO, done using a functional programming style in Java.
Instead of methods and objects, we just have functions and records.