In fortran ,what is the way of finding number of columns in a datafile containing a matrix?
This question How to read number of lines in Fortran 90 from a text file? addresses how to find the number of rows.
Is there any similar way for finding the number of columns?
My goal is reading a matrix from the datafile using an allocatable array of a(nrow,ncolumn) where nrow and ncolumn will be obtained from the datafile's row and column number.