[BangPypers] File operations

Shashidhar Paragonda shashidhar85 at gmail.com
Wed Oct 19 13:41:02 CEST 2011


Hello Mahendra thanks for replying
Sorry I have really not thought of regular expression do you know the
solution or method to resolve this


On Wed, Oct 19, 2011 at 4:46 PM, mahendra N <mahendra0203 at gmail.com> wrote:

> Have you thought of using regular expressions? You can get all the values
> at
> once..
>
> Thanks and Regards,
> Mahendra Naik
>
> 2011/10/19 Shashidhar Paragonda <shashidhar85 at gmail.com>
>
> > Dear Python hackers,
> >
> >        I have a text file and the contents are like :
> >
> >                            #(
> >                            #resultToExportToCurveDistDialog ' ->'
> >                            #off)
> >
> >        like same structure many lines exists.
> >        My requirement is I want to find line where
> > "resultToExportCurveDistDialog" and other pattern exist. After that I
> need
> > to fetch the value of it. in above example value
> >        for "resultToExportCurveDistDialog" is  "off" how to move file
> > pointer to next line and fetch value as soon as i find my required
> > patterns.
> >        Thank you in advance for the help.
> >
> > --
> > -----------------------------------
> > Regards,
> >
> > Shashidhar N.Paragonda
> > shashidhar85 at gmail.com
> > +919449073835
> > _______________________________________________
> > BangPypers mailing list
> > BangPypers at python.org
> > http://mail.python.org/mailman/listinfo/bangpypers
> >
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
-----------------------------------
Regards,

Shashidhar N.Paragonda
shashidhar85 at gmail.com
+919449073835


More information about the BangPypers mailing list