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

Home » Public Forums » archive » can i read multiple 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: can i read multiple files? [message #50254 is a reply to message #50196] Thu, 21 September 2006 18:05 Go to previous messageGo to previous message
zircola is currently offline  zircola
Messages: 8
Registered: September 2006
Junior Member
Thanks every one, i am learning a lot, i tried all of them. using file
search i put all the files in the array but didn't know how to invoke
it with for loop, i tried like this

file_array=file_search('filepath', '*.dat', count=num_file)
for i=0,num_file-1 do begin
file=file_array(i)

openr, lun, /get_lun, file

(read file here)
free_lun, lun
(do all the stuffs like plotting etc here)

endfor

is this how i use the file stored in the array?

for the similar named files, the one suggested by paul works
great,..thanks
i just hope my question is not so stupid
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: eventlog for iTools
Next Topic: Re: MPFIT for 21st Century

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

Current Time: Sun Oct 12 09:38:42 PDT 2025

Total time taken to generate the page: 1.75840 seconds