[Tutor] Reading and Writing

lumbricus@gmx.net lumbricus@gmx.net
Thu, 29 Aug 2002 17:12:42 +0200 (MEST)


> hi there!

Hello!

[ snip ]

> Is it possible to have the program open each of the files in this directo
> ry  
> and for each input file, create an output file with a proper name(what I 
> mean 
> is this: for ez-a.htm I like to have ez-a.txt, and so on), so that I have
>  to 
> run my program only one time?

You may be interested in the glob module.
man glob
 
> Thanks for your help in advance.
> 
> Nicole

HTH, HAND
J"o!

-- 

> 
> 
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 

-- 
Wir beschliessen etwas, stellen das dann in
den Raum und warten dann einige Zeit ab, was
passiert. Wenn es dann kein grosses Geschrei
gibt und keine Aufstaende, weil die meisten
gar nicht begreifen, was da beschlossen
wurde, dann machen wir weiter - Schritt fuer
Schritt, bis es kein Zurueck mehr gibt. 
   -- J-C Juncker

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net