I have to read from a text file. The text in the file is as follows:
The problem I have on this text is that some rows are wrapped, like in the Account line. When I assigning the to Account I only get the value of the Account row, but not the next row that bellows to it.
What I get assigned for Account is:
Account: ‘126201’,‘272001’, ‘272002’, ‘272004’, ‘272005’, ‘272006’, ‘272007’, ‘272008’, ‘272009’, ‘272010’,
Instead of
Account: ‘126201’,‘272001’, ‘272002’, ‘272004’, ‘272005’, ‘272006’, ‘272007’, ‘272008’, ‘272009’, ‘272010’, ‘273001’, ‘273002’, ‘273004’, ‘273005’, ‘273006’, ‘273007’, ‘273009’
I’m reading the text file with a sequence like:
And I’m reading the contents of the Account like:
What can I do to add the next row into Account (or any of the other variables) if the lines have been wrapped?
Any ideas?
Thanks