MathGroup Archive 2009

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

Search the Archive

Re: Filenames with ToString


Alain Mazure wrote:
> Hi again
> 
>    I have several files with extension .jpg of the type
> 
> "C1822_8_025_1.jpg", "C1822_8_025_2.jpg"
> "C1943_11_025_1.jpg", "C1943_11_025_2.jpg" .....
> 
> I know the first part of the name  which was given by : "" ~~ 
> ToString[NAME2]  with NAME2: C1822, C1943 ...
> 
> How to use FileNames in order to have, for a given NAME2 all the *.jpg 
> files in order to import them ?
> 
>    The command: FileNames["" ~~ ToString[NAME2]*".jpg"]  does not work
> 

name = "C1822"
FileNames[name <> "*.jpg"]


  • Prev by Date: Re: How to change name of the file in a Do loop
  • Next by Date: Re: How to change name of the file in a Do loop
  • Previous by thread: Filenames with ToString
  • Next by thread: Re: Filenames with ToString