class XXFile:
    def __init__( self, FileName ):
        self.File = FileName
    def Process ( self ):
        for self.Line in  open ( self.File ):
          self.SetFlds()
    def SetFlds ( self ):
        Write2Log ( "Inside the SetFlds()->Line::[" + self.Line + "]"  )
        Write2Log ( "Test->Line22,34::[" + self.Line [ 22 : 34 ].strip() + "]" )
MyFile = XXFile( "a.txt" )
MyFile.Process()
OUTPUT
2014-02-26T20:41:47| Inside the SetFlds()->Line::[XXXX           9999999                       XXXXXXXXXXXXXXXXXXXXXXX   ABCDE]
2014-02-26T20:41:47| Test->Line22,34::[]
Why am I not getting characters from 22 of length 34? I am getting full all characters in self.Lin in setflds() and but slicing of self.Line is not working..
 
     
     
    