https://all-learning.com/how-to-open-a-file-in-java-3/