Can I split 1 input record into 5 output records?
The input record contains 5 sets of data that may be split depending on the data itself.
The output will go to a holdfile.
I have to process text files with fixed length fields.
Does Python provide for a way to define the fields?
I need something like the following.
text file = 'aaabccccccccddddeff...'
converted to :-
field1 = 'aaa'
field2 = 'b'
field3 = 'cccccccc'
etc....
I am using - field1 = file[0:3] #...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.