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

Home » Public Forums » archive » Re: my god this should be easy!
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: my god this should be easy! [message #12251] Fri, 24 July 1998 00:00 Go to previous message
David Kastrup is currently offline  David Kastrup
Messages: 33
Registered: February 1998
Member
mvukovic@my-dejanews.com writes:

> In article <6p8btl$2ub$1@filet.nrlssc.navy.mil>,
> "T Bowers" <tbowers@nrlssc.navy.mil> wrote:
>> what the...
>> how in the world do i write my data to a text file so it's tab delimited?
>>
>> sizeInfo = size(myData)
>> fmt = "(" + strtrim(string(sizeInfo[1]),2) + "(F0, TR1))"
>> printf, myFile, myData, FORMAT = fmt
>>
> this will not help you at all, but I found this little trick somewhere
> recently. If you are going to use STRTRIM, no need for STRING.
> Sure simplifies code writing although some purists would claim that
> it confuses the meaning of the code (I am sometimes in that camp).

Why not just write something like

printf,myfile,mydata, $
format=string((size(mydata))[1],format="('(',I0,'(F0,1H ))')"
where ^^^^^^^ this
is a single tabulator character?

If you don't like 1H<tab>, you can write ""<tab>"" in the above place,
but this does not make the results more readable...

--
David Kastrup Phone: +49-234-700-5570
Email: dak@neuroinformatik.ruhr-uni-bochum.de Fax: +49-234-709-4209
Institut f�r Neuroinformatik, Universit�tsstr. 150, 44780 Bochum, Germany
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Q] Reading from ASCII file?
Next Topic: Re: [Q] Reading from ASCII file?

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

Current Time: Wed Oct 08 16:49:39 PDT 2025

Total time taken to generate the page: 0.00399 seconds