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 #50257 is a reply to message #50196] Thu, 21 September 2006 11:31 Go to previous messageGo to previous message
Braedley is currently offline  Braedley
Messages: 57
Registered: September 2006
Member
zircola wrote:
> it is fine, but i wanted to do it automatically not that i have to
> select the file individually. I want to read the file do the action and
> again read another file do the same action and read another file and do
> the same action and so on in the same procedure. My files are in same
> format and same data attributes but different data set. How can this be
> done?

My appologies if this caused confusion. Dialog_Pickfile should be used
when the you want the user to select a file (or directory) to open. If
there is a need to get the user to open more than one file, then
include the multiple keyword. If instead you don't want the user to
have any choice in the matter, you can either hard code the files into
the code (in your case, in the form of an array) or use file_search
like David suggested to find files in a directory that match a certain
criterion. In either case, you'll still probably use a loop to keep
your code more flexible.

I only suggested using dialog_pickfile because often use it during
development stages so I can test many different data files without
changing the program. It's only after I've added a shell program to do
batch processing (once I know the main program is working) that I stop
making calls to dialog_pickfile.
[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: Sat Oct 11 06:42:18 PDT 2025

Total time taken to generate the page: 0.80001 seconds