Re: iterating through files

2009-02-20 Thread Marc 'BlackJack' Rintsch
On Thu, 19 Feb 2009 13:56:38 -0800, oamram wrote: > new to python. i have a directory with about 50 text file and i need to > iterate through them and get > line 7 to 11 from each file and write those lines into another file(one > file that will contain all lines). Untested: from __future__ impo

Re: iterating through files

2009-02-19 Thread Mensanator
On Feb 19, 4:56 pm, Steve Holden wrote: > Chris Rebert wrote: > > On Thu, Feb 19, 2009 at 2:28 PM, Mike Driscoll wrote: > >> On Feb 19, 4:22 pm, Mike Driscoll wrote: > >>> On Feb 19, 3:56 pm, oamram wrote: > > Hi Pythonist, > new to python. i have a directory with about 50 text file a

Re: iterating through files

2009-02-19 Thread Steve Holden
Chris Rebert wrote: > On Thu, Feb 19, 2009 at 2:28 PM, Mike Driscoll wrote: >> On Feb 19, 4:22 pm, Mike Driscoll wrote: >>> On Feb 19, 3:56 pm, oamram wrote: >>> Hi Pythonist, new to python. i have a directory with about 50 text file and i need to iterate through them and get

Re: iterating through files

2009-02-19 Thread Chris Rebert
On Thu, Feb 19, 2009 at 2:28 PM, Mike Driscoll wrote: > On Feb 19, 4:22 pm, Mike Driscoll wrote: >> On Feb 19, 3:56 pm, oamram wrote: >> >> > Hi Pythonist, >> > new to python. i have a directory with about 50 text file and i need to >> > iterate through them and get >> > line 7 to 11 from each f

Re: iterating through files

2009-02-19 Thread Mike Driscoll
On Feb 19, 4:22 pm, Mike Driscoll wrote: > On Feb 19, 3:56 pm, oamram wrote: > > > Hi Pythonist, > > new to python. i have a directory with about 50 text file and i need to > > iterate through them and get > > line 7 to 11 from each file and write those lines into another file(one file > > that w

Re: iterating through files

2009-02-19 Thread Mike Driscoll
On Feb 19, 3:56 pm, oamram wrote: > Hi Pythonist, > new to python. i have a directory with about 50 text file and i need to > iterate through them and get > line 7 to 11 from each file and write those lines into another file(one file > that will contain all lines). > > Cheers, Omer. > -- > View th