Thanks. I fear that readdlm() will not work in those cases when there is no delimiter. Unfortunately, such files [ e.g.FORMAT(3I4,4F8.2) ] are frequently written by standard crystallographic programs.
On Friday, March 7, 2014 10:20:30 PM UTC+1, Jacob Quinn wrote: > Have you checked out `readdlm`? It's flexibility has grown over time and > serves most of my needs. > > http://docs.julialang.org/en/latest/stdlib/base/#Base.readdlm > > -Jacob > > > On Fri, Mar 7, 2014 at 4:17 PM, Gabor <[email protected] <javascript:>> wrote: > >> Sorry, I was not clear enough. >> Of course it is just a simple formatted text file. >> >> All I wanted to know, how to read such files efficiently. >> Currently I use readline(), string indexing and int()/float64() >> conversions. >> Is there a better way to do this? >> >> >> On Friday, March 7, 2014 10:05:53 PM UTC+1, Stefan Karpinski wrote: >> >>> Is there a standard Fortran data format? Do you have a link to a >>> standard or specification? >>> >>> >>> On Fri, Mar 7, 2014 at 1:17 PM, Gabor <[email protected]> wrote: >>> >>>> Could someone help, please. >>>> >>>> What is the most efficient way of reading and writing >>>> Fortan-formatted files ? [ e.g. FORMAT(3I4,4F8.2) ] >>>> >>> >>> >
