Code
101011111111101111111111009100954A094101
9000000000001000000000000000000000000000001000000000000000000000000000000000000000000000000000Now i would like to insert data in between these 2 lines as
Code
52201 1 1 CCD1 100910100910 1111111110000001
6211111111181 00000000011 1 1 0111111110000001
822000000101111111180000000000000000000000011 111111110000001and the final output should be as follows
Code
101011111111101111111111009100954A094101
52201 1 1 CCD1 100910100910 1111111110000001
6211111111181 00000000011 1 1 0111111110000001
822000000101111111180000000000000000000000011 111111110000001
9000000000001000000000000000000000000000001000000000000000000000000000000000000000000000000000and 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 BejaouiRank #144 · 15.9K reputationPosted Sep 11, 2010, 4:16 AM EDT
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
krishna v30 reputationPosted Sep 12, 2010, 3:13 PM EDT
Bechir BejaouiRank #144 · 15.9K reputationPosted Sep 13, 2010, 3:09 AM EDT