Re: Writing a modified .txt file issue [message #85398 is a reply to message #85388] |
Tue, 30 July 2013 08:17  |
Andy Sayer
Messages: 127 Registered: February 2009
|
Senior Member |
|
|
So are you saying you want the words in the first column to align with the numbers underneath them? If that's it, you may need to use a different format code for the first line (i=0 in your loop). For example:
IDL> print,'b',format='(A15)'
b
IDL> print,'b',format='(A10)'
b
IDL>
Here 'A' is for formatting characters, and 15 and 10 are the 'width' to set the output to.
Based on a glance at your output it looks like yours are 13 characters wide, so give format='(A13)' a shot.
Hope this helps,
Andy
On Tuesday, July 30, 2013 7:02:51 AM UTC-4, Ahmet Hakan BAYRAK wrote:
>
> There is no problem matching between input file and output file for me. I tried to say in my output file my header and my data are not one under the other. I mean "from" is not top of the first column, "to" is not top of the second column and goes on like that.
|
|
|