Re: Reading whole directories [message #18192] |
Mon, 13 December 1999 00:00 |
thompson
Messages: 584 Registered: August 1991
|
Senior Member |
|
|
"R.Bauer" <R.Bauer@fz-juelich.de> writes:
> "S.N. Heukels" wrote:
>> I have created a WIDGET that runs fine with 1 file.
>> I've now been looking into the possibility of having the user select a
>> directory and process every file in that directory.
>> Is there a way to gain a string or array containing every file in the
>> directory a user selects >> ??
>>
>> Greets Sean Heukels
>>
>> Invivonmr institute
>> Utrecht University, The Netherlands
> look at findfile()
> R.Bauer
I seem to recall that FINDFILE() has some problems with directories containing
large numbers of files. Stein Vidar Haugan wrote a routine called FIND_FILE()
that gets around this limitation. It can be found at
ftp://sohoftp.nascom.nasa.gov/solarsoft/gen/idl/system/find_ file.pro
William Thompson
|
|
|
Re: Reading whole directories [message #18195 is a reply to message #18192] |
Mon, 13 December 1999 00:00  |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
"S.N. Heukels" wrote:
>
> I have created a WIDGET that runs fine with 1 file.
> I've now been looking into the possibility of having the user select a
> directory and process every file in that directory.
> Is there a way to gain a string or array containing every file in the
> directory a user selects >> ??
>
> Greets Sean Heukels
>
> Invivonmr institute
> Utrecht University, The Netherlands
How about:
files=findfile(dialog_pickfile(/dir))
--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
|
|
|
|
Re: Reading whole directories [message #18198 is a reply to message #18192] |
Mon, 13 December 1999 00:00  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
"S.N. Heukels" wrote:
> I have created a WIDGET that runs fine with 1 file.
> I've now been looking into the possibility of having the user select a
> directory and process every file in that directory.
> Is there a way to gain a string or array containing every file in the
> directory a user selects >> ??
>
> Greets Sean Heukels
>
> Invivonmr institute
> Utrecht University, The Netherlands
look at findfile()
R.Bauer
|
|
|