|
Re: writing ascii-file with separator [message #46231 is a reply to message #46230] |
Tue, 08 November 2005 03:01  |
Peter Clinch
Messages: 98 Registered: April 1996
|
Member |
|
|
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.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
|
|
|
Re: writing ascii-file with separator [message #46232 is a reply to message #46231] |
Tue, 08 November 2005 02:50  |
Timm Weitkamp
Messages: 66 Registered: August 2002
|
Member |
|
|
Tobias,
Have a look at this: <http://www.dfanning.com/tips/csv_file.html>.
Cheers,
Timm
Timm Weitkamp, ESRF, Grenoble, France
Tobias Geldhauser wrote:
> Hi Andres,
>
> thanks for the tip, but unfortunately i didn't work so far (still
> working on it ).
>
>
> Isn't there a way via "format" ?
>
> printf, 1, format='?????', tab
>
> greetings,
>
> Tobias
|
|
|
|
|
|