My char array would be looking something like below,
Org_arr[1first line text------2second line text----3third line-------4--------------------5fith line text------];
where '-' equal to blank spaces
The above array contains the control code(0, 1, 2, 3..) after every 20 characters starting from 0-th place.
I would like to convert the above text array into below format,
The blank spaces will be removed and a line feed will be added at the end of each line.
Conv_arr[1first line text/n2second line text/n3third line/n4/n5fith line text/n];
Please suggest me a good method to implement this,
Thank You