Test for writing Fortran files, tips on reading n-dimensional arrays