Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: importing multiple files

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18657] Re: importing multiple files
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 15 Jul 1999 01:45:46 -0400
  • Organization: Universitaet Leipzig
  • References: <7mej9h$9hg@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi, 

you don't need a loop at all

flst=FileNames["*z.txt"];
DeleteFile /@ (Get /@ lst);

Regards
  Jens

pytr wrote:
> 
> I need to import multiple files in text format which are written by another
> system. I don't want to use math link at this time.
> 
> The basic routine needed is
> 
> SetDirectory  ["c:\dumpdir/myreports"]
> Label [beginproc]
> flst= FileNames[ "*z.txt"]
> filename=First[flst]
> Get[filename]
> DeleteFile[filename]
> Goto beginproc
> 
> using the above file list, I need to import and run each file, then erase
> each file after processing,then look for new files.
> 
> Any advice?
> 
> The current program only loops once..
> 
> CJ


  • Prev by Date: Re: RE: RE: ExpIntegralEi
  • Next by Date: Re: [Q] Extracting patterns
  • Previous by thread: Re: importing multiple files
  • Next by thread: Solving difficult integral