Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15112

Re: files

From Helen Read <readhpr@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: files
Date 2013-07-03 08:51 +0000
Message-ID <kr0on0$3ep$1@smc.vnet.net> (permalink)
References <kqtl5f$at4$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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
>



Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

files Francisco Gutierrez <fgutiers2002@yahoo.com> - 2013-07-02 04:32 +0000
  Re: files Helen Read <readhpr@gmail.com> - 2013-07-03 08:51 +0000

csiph-web