Re: Use of names
- To: mathgroup at smc.vnet.net
- Subject: [mg99921] Re: Use of names
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Tue, 19 May 2009 06:46:23 -0400 (EDT)
- References: <gurcm1$gt8$1@smc.vnet.net>
Alain Mazure wrote: > Hi > > I would like to import files from directories (e.g .png files) > > The names are not always the same but the extension is. > > > I could find them by the command: > > FileNames["*.png"] > > > which gives their names, but how could I import all of them since the = > > command : > > Import["TEMPO_*.png"] > > does not work in Mathematica > You have all the file names, now import them one by one: Import /@ FileNames["*.png"]