Repaired problem with fortran format in writeToChannel