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

Home » Public Forums » archive » Re: reading many files
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: reading many files [message #53026 is a reply to message #53025] Tue, 13 March 2007 07:55 Go to previous messageGo to previous message
Ben Panter is currently offline  Ben Panter
Messages: 102
Registered: July 2003
Senior Member
george wrote:

> data49-5.0-4.0.dat
> data50-5.0-4.0.dat
> ...
> data49-5.0-3.0.dat
> data50-5.0-3.0.dat
> ....
>
> i.e. with the following form
> data**-5.0-**.dat

Hi George,

I think you might want the STRING command with a FORMAT code. This
takes a number and puts it into a string format which you can then add
into your for loop. Off the top of my head, try something like

filename='data'+STRING(j,FORMAT='(I02)')+'-5.0-'+STRING(i,FO RMAT='(I1)')+'.0.dat
readcol, filename, ....

cheers,

Ben

--
Ben Panter, Edinburgh, UK.
Email false, http://www.benpanter.co.uk
or you could try ben at ^^^^^^^^^^^^^^^
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: reading many files
Next Topic: Re: New IDLDE

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

Current Time: Wed Oct 08 18:21:55 PDT 2025

Total time taken to generate the page: 0.00412 seconds