101011111111101111111111009100954A094101 9000000000001000000000000000000000000000001000000000000000000000000000000000000000000000000000
Now i would like to insert data in between these 2 lines as
52201 1 1 CCD1 100910100910 1111111110000001 6211111111181 00000000011 1 1 0111111110000001 822000000101111111180000000000000000000000011 111111110000001
and the final output should be as follows
101011111111101111111111009100954A094101 52201 1 1 CCD1 100910100910 1111111110000001 6211111111181 00000000011 1 1 0111111110000001 822000000101111111180000000000000000000000011 111111110000001 9000000000001000000000000000000000000000001000000000000000000000000000000000000000000000000000
and also i would like to replace some values in the last line basing on the lines inserted in between first and lines. So can any one give me an idea.
This text may vary from file to file.

Bechir BejaouiPosted Sep 13, 2010, 7:09 AM
krishna vPosted Sep 12, 2010, 7:13 PM
Bechir BejaouiPosted Sep 11, 2010, 8:16 AM
You can make use of the string.insert method to insert your data.
http://msdn.microsoft.com/en-us/library/system.string.insert(v=VS.71).aspx
The string.startswidth can help you to precise from where you can begin insert
http://msdn.microsoft.com/en-us/library/system.string.startswith(v=VS.71).aspx
The string.Replace help you replace some string or characters with desired ones
http://msdn.microsoft.com/en-us/library/system.string.replace(v=VS.71).aspx