learning how to read from a file in scala