Re: parsing a dbIII file

2007-08-08 Thread korovev76
On 7 Ago, 17:47, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I have to parse a file (that is a dbIII file) whose stucture look like > > this: > > |string|, |string|, |string that may contain commas inside|, 1, 2, 3, | > > other string| > >

Re: parsing a dbIII file

2007-08-07 Thread Jerry Hill
On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have to parse a file (that is a dbIII file) whose stucture look like > this: > |string|, |string|, |string that may contain commas inside|, 1, 2, 3, | > other string| The CSV module is probably the easiest way to go: >>> data = "|string|

Re: parsing a dbIII file

2007-08-07 Thread Paul McGuire
On Aug 7, 2:21 am, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello everybody, I'm new to python (...I work with cobol...) > > > I have to parse a file (that is a dbIII file) whose stucture look like > > this: > > |string|, |string|, |string that may contain commas insid

Re: parsing a dbIII file

2007-08-07 Thread Jay Loden
[EMAIL PROTECTED] wrote: > Hello everybody, I'm new to python (...I work with cobol...) > > I have to parse a file (that is a dbIII file) whose stucture look like > this: > |string|, |string|, |string that may contain commas inside|, 1, 2, 3, | > other string| There are a number of relatively sim

Re: parsing a dbIII file

2007-08-07 Thread korovev76
On 7 Ago, 09:21, Steve Holden <[EMAIL PROTECTED]> wrote: > That's not a standard dBaseIII data file though, correct? It looks more > like something that was produced *from* a dBaseIII file. yeap... unfortunately it is not... > Good luck with your escape from COBOL! i'm not escaping by now... A

Re: parsing a dbIII file

2007-08-07 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hello everybody, I'm new to python (...I work with cobol...) > > I have to parse a file (that is a dbIII file) whose stucture look like > this: > |string|, |string|, |string that may contain commas inside|, 1, 2, 3, | > other string| > > Is there anything in python that

parsing a dbIII file

2007-08-07 Thread korovev76
Hello everybody, I'm new to python (...I work with cobol...) I have to parse a file (that is a dbIII file) whose stucture look like this: |string|, |string|, |string that may contain commas inside|, 1, 2, 3, | other string| Is there anything in python that parses this stuff? thanks a lot korove