[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with findfile
- Subject: Re: help with findfile
- From: david(at)dfanning.com (David Fanning)
- Date: Wed, 11 Jul 2001 12:22:19 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <9ii4vo$ku7$1@skates.gsfc.nasa.gov>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:25637
David Miller writes:
> I am using the FINDFILE routine to list all of the available data files in a
> particular directory. I then search through the list to get starting and
> ending points for a particular image. However, the filenames returned by
> FINDFILE are not in order (alphabetical), they are all mixed up. Any way to
> get them in order? I am using IDL 5.4 on Win 2000.
Sort them.
files = Findfile('*.img')
sortedfiles = files(SORT(files))
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155