MathGroup Archive 2012

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

Search the Archive

Re: Import multiple files with same extension from a folder

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128243] Re: Import multiple files with same extension from a folder
  • From: Murta <rodrigomurtax at gmail.com>
  • Date: Sat, 29 Sep 2012 02:55:33 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <k40vu9$ja9$1@smc.vnet.net>

Hi
Try this to get file names:
SetDirectory["~/Desktop"]
files=FileNames["*.exp"]
Import/@files

best regards
Murta
On Thursday, September 27, 2012 4:42:23 AM UTC-3, Dominik Hezel 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.



  • Prev by Date: Re: maximization with array of constraints
  • Next by Date: Re: Crashing every other launch?
  • Previous by thread: Re: Import multiple files with same extension from a folder
  • Next by thread: Crashing every other launch?