Re: how to modify the default 'printf' format [message #31043] |
Tue, 04 June 2002 10:53 |
Don J Lindler
Messages: 19 Registered: April 2001
|
Junior Member |
|
|
You could use the $ format code. For example
openw,1,'junk.txt'
for i=1,10 do printf, 1, i, format='(I5,$)'
close,1
would put all of the values on the same line even through printf was called
10 times.
Don Lindler
"Xiaoying Jin" <xje4e@mizzou.edu> wrote in message
news:adit1c$7hv$1@dipsy.missouri.edu...
> Hi, there,
>
> As we know, when we use 'printf' in IDL, it will automatically print a
> 'carriage-return' at the end of it. So next time, when we use 'printf', it
> will print in a new line.
>
> My question is:
> How can we modify this default behavier of 'printf' and let it print in
the
> same line next time?
>
> Any suggestion will be appreciated.
>
> Regards,
>
> Xiaoying Jin
>
>
|
|
|