title: Append String to each line of .txt file in python?
body: <p>I want to append some text to every line in my file</p>
  
  <p>Here is my code</p>
  
  <pre><code>filepath = 'hole.txt'
  with open(filepath) as fp:
      line = fp.readline()
      cnt = 1
      while line:
          #..........
          #want to append text "#" in every line by reading line by line 
          text from .txt file
          line = fp.readline()
          cnt += 1
  </code></pre>