This question already has an answer here:
- How can I replace a string in a file(s)? 7 answers
i have a file in which i have to change a word and then save it by same name.
for ex- for file "name"-
my name is joe (original data) my name is roy (changed data)
how to do it in best possible way?