title: Python file handling and lines input
body: <p>If i have a python file let's say abc.txt and contains the following data ONLY</p>
  
  <pre><code>    #data(data may change dynamically)
      #data(data may change dynamically)
  </code></pre>
  
  <p>I want to delete the file itself. (abc.txt)</p>
  
  <p>But what if there's a python file which is still the same file containing the data AND something else, I will want to keep the file. (abc.txt) </p>
  
  <pre><code>    #12345 (Number may change dynamically)
      #46346346 (Number may change dynamically)
  
      DATA
      DATA
      DATA
  </code></pre>
  
  <p>Is there anyway i can do this? Sorry I am really new to python and I can't figure out a way to delete the file itself because of the ever-changing conditions.</p>