Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11898
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Import multiple files with same extension from a folder |
| Date | 2012-09-28 03:09 +0000 |
| Message-ID | <k434cp$ne7$1@smc.vnet.net> (permalink) |
| References | <20120927070449.4F2086837@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Table[Export["test" <> ToString[n] <> ".exp",
Exp[n], "Text"], {n, 4}];
Table[Export["test" <> ToString[n] <> ".log",
Log[n], "Text"], {n, 4}];
Import /@ FileNames["*.exp"]
{"E", "E^2", "E^3", "E^4"}
ToExpression[%] // Log
{1, 2, 3, 4}
Bob Hanlon
On Thu, Sep 27, 2012 at 3:04 AM, Dominik Hezel <sendme2000@me.com> wrote:
> Hello,
>
> I have a folder with different files, e.g.
>
> test1.exp
> test2.exp
> test1.log
> test2.log
> ...
>
> The number of files and actual file names is unknown. I would like to import all files ending with .exp. How do I do this rather simple task?
>
> Thanks for any help.
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Import multiple files with same extension from a folder Bob Hanlon <hanlonr357@gmail.com> - 2012-09-28 03:09 +0000
csiph-web