Hi All,
I have a particular problem on hand and was thinking what would be a good way to solve the same.
I have a text file with a lot of lines,say
s=abcddddddeeeffffff
t=ddddrrrffffabcgggggshhhhh
w=gggdjjuuuuabciugdiasugdaoiugsd
etc
I need to read the file, and get the output such that:
s=zddddddeeeffffff
t=ddddrrrffffzgggggshhhhh
w=gggdjjuuuuziugdiasugdaoiugsd
z=abc
etc, the number of such words that i may need to replace are many.
what would be the best way to solve the problem,
Should I read the file line by line keep on replcing all the occurences of the abc to z and at the end of the file add the formula z=abc????