but the Colums aren't seperated - especially when the numbers are nagative, then it looks like:
...00000-2.11 ...99920 3.222
Now, i wanted to insert a separator like "tab" or ",", because i need to read the file with excel/origin (without the seperator the file isn't recognized as a ascii-file - even a "space" would do)
Is there a solution for my problem ? (the easier the better :) )
Tobias Geldhauser wrote: > Isn't there a way via "format" ?
> printf, 1, format='?????', tab
format='(5(" ",F+012.3, " "))'
should give you, for example 5 columns of floating point with a deliberate space either side of the number, a '+' before positive and a '-' before negative figures, each figure having 12 total digit spaces and 3 places of decimals with the leading figures padded by zeros.
Look up "format codes" in help for some other tweaks.
HTH, Pete. -- Peter Clinch Medical Physics IT Officer Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital Fax 44 1382 640177 Dundee DD1 9SY Scotland UK net p.j.cli...@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/