Actaully i have data in file like this
&#^!&*^$*&^!$*&^!*&^$
ACBDBCAAHDADHKADHKJAH
+++------------+++++++---
32137847894738947984774
&*($@&(&(&@$&($&@(#&
JKAHFKJAHFLKAJFHKAHFJKHF
+++-------------+++++++--
48932478974894789744747
while reading a file, i want to get the result in such a way that Alphabatical line should be first one to print and other three line should be concatenated so result wil be like
Ist line ACBDBCAAHDADHKADHKJAH
IInd line &#^!&*^$*&^!$*&^!*&^$+++------------+++++++--32137847894738947984774
IIIrd line JKAHFKJAHFLKAJFHKAHFJKHF
IVth line
&*($@(&@$($&@(#&+++-------------+++++++--48932478974894789744747
I have tried a lot every time the format is coming different. I m not getting the correct format.