Split file into several and reformat

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Thu Jun 21 09:10:04 CEST 2007


bomber71 at aapt.net.au a écrit :
> Hi,
> 
> I want to take read an input file (sels.txt) that looks like:
> 
(snip)
> 
> And turn it into an output file for each of the "sels" in the input file, i.e
> sel1.txt:
> 
(snip)
> and sel2.txt:
> 
(snip)


> And so on.

Yes, fine. All this is documented here:

http://www.catb.org/~esr/faqs/smart-questions.html#before

> Many thanks,

You're welcome.





More information about the Python-list mailing list