Re: [Tutor] How to print the next line in python

2009-09-14 Thread Eduardo Vieira
On Sat, Sep 12, 2009 at 10:53 PM, Lie Ryan wrote: > ranjan das wrote: >> >> Hi, >> >> I am new to python and i wrote this piece of code which is ofcourse not >> serving my purpose: >> >> Aim of the code: >> >> To read a file and look for lines which contain the string 'CL'. When >> found, print th

Re: [Tutor] How to print the next line in python

2009-09-12 Thread Lie Ryan
ranjan das wrote: Hi, I am new to python and i wrote this piece of code which is ofcourse not serving my purpose: Aim of the code: To read a file and look for lines which contain the string 'CL'. When found, print the entry of the next line (positioned directly below the string 'CL') c

Re: [Tutor] How to print the next line in python

2009-09-12 Thread Rich Lovely
2009/9/12 Dave Angel : > ranjan das wrote: >> >> Hi, >> >> I am new to python and i wrote this piece of code which is ofcourse not >> serving my purpose: >> >> Aim of the code: >> >> To read a file and look for lines which contain the string 'CL'. When >> found, >> print the entry of the next line

Re: [Tutor] How to print the next line in python

2009-09-12 Thread Dave Angel
ranjan das wrote: Hi, I am new to python and i wrote this piece of code which is ofcourse not serving my purpose: Aim of the code: To read a file and look for lines which contain the string 'CL'. When found, print the entry of the next line (positioned directly below the string 'CL') conti

Re: [Tutor] How to print the next line in python

2009-09-12 Thread ranjan das
Thanks a lot Andre...it is working On Sat, Sep 12, 2009 at 2:17 PM, Andre Engels wrote: > On Sat, Sep 12, 2009 at 10:35 AM, ranjan das > wrote: > > Hi, > > > > I am new to python and i wrote this piece of code which is ofcourse not > > serving my purpose: > > > > Aim of the code: > > > > To rea

Re: [Tutor] How to print the next line in python

2009-09-12 Thread Andre Engels
On Sat, Sep 12, 2009 at 10:35 AM, ranjan das wrote: > Hi, > > I am new to python and i wrote this piece of code which is ofcourse not > serving my purpose: > > Aim of the code: > > To read a file and look for lines which contain the string 'CL'. When found, > print the entry of the next line (posi

[Tutor] How to print the next line in python

2009-09-12 Thread ranjan das
Hi, I am new to python and i wrote this piece of code which is ofcourse not serving my purpose: Aim of the code: To read a file and look for lines which contain the string 'CL'. When found, print the entry of the next line (positioned directly below the string 'CL') continue to do this till