title: Replace text in a file between two strings from another text file using python
body: <p>I have file which has alot of data with some lines as</p>
  
  <pre><code>*PART, NAME=Part-Default
  **
  *NODE, NSET=ALLNODES
  1,  -175.443970,    -165.165787
  2,  -175.143875,    -161.285782
  3,  -171.282181,    -163.266525
  ...
  ...
  ...
  **
  *ELEMENT, TYPE=CPE4R, ELSET=EB2
         1,       3,       2,       1,       4
         2,       6,       5,       2,       3
  </code></pre>
  
  <p>I want to replace the text between</p>
  
  <p>*NODE, NSET=ALLNODES and the first occurance of ** after that from another file which has the data of the form i.e. only numbers separated with comma!</p>
  
  <pre><code>1,  -75.443970, -15.165787
  2,  -75.143875, -11.285782
  3,  -71.282181, -13.266525
  </code></pre>
  
  <p>I am able to read all the lines of another file with the simple command </p>
  
  <pre><code>file=open(fileName,'r')
  for lines in file:
  </code></pre>
  
  <p>but could not figure out the replacement method. Any suggestions?</p>