title: Need to find and replace a particular word in a text file based on lookup
body: <pre><code>f = open("info.txt",'r')
  filedata = f.read()
  f.close()
  
  newdata = filedata.replace("opdut_decoded.wav","a88.wav")
  
  f = open("info.txt",'w')
  f.write(newdata)
  f.close()
  </code></pre>
  
  <p>This is my example code to replace one word only.</p>
  
  <p>I need to find a word from an text file and replace/rename that word from an another text file line by line by lookup words.</p>
  
  <p>Ex: searching a word "search" and replace("1") the word from another first line/word of a text file.</p>
  
  <p>It's  needs to be continue for multiple line rename.
  Is there is any way available in python.Can you Please guide me. </p>