MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Import multiple files with same extension from a folder


On Sep 27, 2012, at 3:04 AM, Dominik Hezel <sendme2000 at me.com> wrote:

> Hello,
>
> I have a folder with different files, e.g.
>
> test1.exp
> test2.exp
> test1.log
> test2.log
> ...
>
> The number of files and actual file names is unknown. I would like to import all files ending with .exp. How do I do this rather simple task?
>

   Import /@ FileNames["*.exp", "path_to_files"]

---
Murray Eisenberg                                     
murray at math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                  413 545-2859 (W)
710 North Pleasant Street                      fax   413 545-1801
Amherst, MA 01003-9305








  • Prev by Date: Re: Import multiple files with same extension from a folder
  • Next by Date: Re: maximization with array of constraints
  • Previous by thread: Re: Import multiple files with same extension from a folder
  • Next by thread: Re: Import multiple files with same extension from a folder