Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Use of names

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99914] Re: Use of names
  • From: dh <dh at metrohm.com>
  • Date: Tue, 19 May 2009 06:45:03 -0400 (EDT)
  • References: <gurcm1$gt8$1@smc.vnet.net>


Hi Alian,

simply map Import on the filenames:



Import /@ filenames



Daniel



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

> 

> Thanks

> 

> Files examples:

> 

> 

> {"TEMPO_ALL_histo.png", "TEMPO_histo_17.png"}

> 

> 

> 

> 

> 

> Alain Mazure

> 

> Laboratoire d'Astrophysique de Marseille

> P=F4le de l'=C9toile Site de Ch=E2teau-Gombert

> 38, rue Fr=E9d=E9ric Joliot-Curie

> 13388 Marseille cedex 13, France

> 

> http://alain.mazure.free.fr/

> 

> Mails:

> alain.mazure at oamp.fr

> alain.mazure at free.fr

> 

> Phones:

> Lab: 33(0)491055902

> Mobile: 33(0)603556287

> Fax: 33(0)491661855

> SKYPE: MAZURE-ALAIN

> 




  • Prev by Date: Re: Use of names
  • Next by Date: Re: "SelectionData" and palettes
  • Previous by thread: Re: Use of names
  • Next by thread: How to change name of the file in a Do loop