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

Home » Public Forums » archive » Re: how to modify the default 'printf' format
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to modify the default 'printf' format [message #31043] Tue, 04 June 2002 10:53
Don J Lindler is currently offline  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
>
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to modify the default 'printf' format
Next Topic: Re: the length of line

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

Current Time: Wed Oct 08 17:47:01 PDT 2025

Total time taken to generate the page: 0.05708 seconds