convert non-delimited to delimited
Michael Bentley
michael at jedimindworks.com
Mon Aug 27 14:44:11 EDT 2007
On Aug 27, 2007, at 10:59 AM, RyanL wrote:
> I'm a newbie! I have a non-delimited data file that I'd like to
> convert to delimited.
>
> Example...
> Line in non-delimited file:
> 0139725635999992000010100534+42050-102800FM-15+1198KAIA
>
> Should be:
> 0139,725635,99999,2000,01,01,00,53,4,+42050,-102800,FM-15,+1198,KAIA
>
> What is the best way to go about this? I've looked all over for
> examples, help, suggestions, but have not found much. CSV module
> doesn't seem to do exactly what I want. Maybe I'm just missing
> something or not using the correct terminology in my searches. Any
> assistance is greatly appreaciated! Using Python 2.4
Is each data element a fixed size?
More information about the Python-list
mailing list