I have this string: ABCDEFGHIJ
ABCDEFGHIJ
I need to replace from position 4 to position 5 with the string ZX
ZX
It will look like this: ABC
ABC
Use String.Substring() (details here) to cut left part, then your replacement, then right part. Play with indexes until you get it right :)
String.Substring()
Something like:
string replacement=original.Substring(0,start)+ rep+original.Substring(start+rep.Length);