Hello, I am trying to pull out certain information from a huge text file because the lines are difficult to read. I can read line by line but how do I put each character in a list or array to pull out characters at certain positions? Do I use split or strip? Here is an example of a line:
0000009887465 000002250000000000089877000000000000.0002/28/202000000000.00000000000.00
I need to pull position 6 thru 13 and to get: 9887465
Then pull 27 thru 30 and 61 thru 71 to get: 225 02/28/2020
So the output would be 9887465 225 02/28/2020
If someone could point me in the right direction. Thanks!
ps. there is supposed to 9 white spaces after 65
0000009887465 000002250000000000089877000000000000.0002/28/202000000000.00000000000.00
I need to pull position 6 thru 13 and to get: 9887465
Then pull 27 thru 30 and 61 thru 71 to get: 225 02/28/2020
So the output would be 9887465 225 02/28/2020
If someone could point me in the right direction. Thanks!
ps. there is supposed to 9 white spaces after 65