https://devhubby.com/thread/how-to-write-to-a-file-in-fortran