comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Writing a modified .txt file issue
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Writing a modified .txt file issue [message #85398 is a reply to message #85388] Tue, 30 July 2013 08:17 Go to previous message
Andy Sayer is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Find all user-defined structure definitions
Next Topic: Multiple plots with plot function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 19:20:16 PDT 2025

Total time taken to generate the page: 0.95987 seconds