I am new to Stack Overflow site and Python too.
I have a text file which contains transaction of a company with pipe delimiter
There are certain transactions which comes on the second line due to line character.These transactions typically have one more line character in the second line too.
i want to bring the second line and concatenate it with the first line using python.
A sample file given below for my friends to facilitate understanding my issue (Line Numbers are just for our reference purposes):
Line1: A|B|C|D Line2: A|B|C| Line3: D Line4: Line5: A|B Line6: C|D Line7: Line8: A|B|C|D
Thanks alot for reading this and for providing the solution.