Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15093 > unrolled thread
| Started by | Francisco Gutierrez <fgutiers2002@yahoo.com> |
|---|---|
| First post | 2013-07-02 04:32 +0000 |
| Last post | 2013-07-03 08:51 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | Francisco Gutierrez <fgutiers2002@yahoo.com> |
|---|---|
| Date | 2013-07-02 04:32 +0000 |
| Subject | files |
| Message-ID | <kqtl5f$at4$1@smc.vnet.net> |
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
[toc] | [next] | [standalone]
| From | Helen Read <readhpr@gmail.com> |
|---|---|
| Date | 2013-07-03 08:51 +0000 |
| Message-ID | <kr0on0$3ep$1@smc.vnet.net> |
| In reply to | #15093 |
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 >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web