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

Home » Public Forums » archive » reading many files
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
reading many files [message #53028] Tue, 13 March 2007 07:43
Steve.Morris@libero.i is currently offline  Steve.Morris@libero.i
Messages: 12
Registered: March 2006
Junior Member
Hi folks,

I have to write a short program that however have to read very many
files with similar names like

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

The number of files is quite large, indeed, so I rather than to type
any single file, I was wondering if there is any (I'm sure there's)
way to read all this file with a FOR cicle like (obviosuly I don't
know if the example is correct, since it's what I'm asking...)

for j=49, 80 do begin
for i=-4, 0 do begin
readcol,somethings.....
endfor
endfor


Thanks so much!
G.

Thanks a lot!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Yet again, The Sky is Falling!
Next Topic: Re: reading many files

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

Current Time: Wed Oct 08 17:30:50 PDT 2025

Total time taken to generate the page: 0.00605 seconds