Re: files
- To: mathgroup at smc.vnet.net
- Subject: [mg131404] Re: files
- From: Helen Read <readhpr at gmail.com>
- Date: Wed, 3 Jul 2013 05:01:06 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- References: <kqtl5f$at4$1@smc.vnet.net>
Assuming they all have file extension .txt: files = FileNames["*ANTIOQUIA*.txt"] Map[Import, files] Helen Read University of Vermont On 7/2/2013 12:32 AM, Francisco Gutierrez wrote: > Dear Group: > Suppose that I choose a directory: > > SetDirectory["S:\\mydirectory"] > > And in that directory I have a set of files, each of which contains the string "ANTIOQUIA". For example "5673ANTIOQUIA.txt", "nuevoANTIOQUIA.txt", > "ANTIOQUIAcomplejo.txt" > > I already have managed to find the files automatically. > Now, my two questions: > > a. Is there a way to open them authomatically from Mathematica? > b. Even better, to find them and import them into Mathematica? > > Thanks and best regards > > Francisco >