Original text:
E02000000000000002DOCE LUAMAR MORENINHA 240G 00100309 00100309
I need to change to this:
E02000000000000002DOCE LUAMAR MORENINHA 240G 20100309 20100309
I'm using this:
if (str.Substring(0, 4) == "E020")
{
if (str.Substring(78, 2) == "00")
{
string str2 = str.Replace(str.Substring(78, 2), "20");
But the result is like this:
E02202020202020202DOCE LUAMAR MORENINHA 240G 20120309 20120309
You are placing 20 in all the places who have 00 in the line. Can anyone help me?