title: How to append data to text file in python 2.7.11?
body: <p>Could any one show me how i can add hyperlinks to new line in text file? If there is already data in first line of text file i want the data get inserted in the next empty line. I am writing multiple hyperlinks to text file(append). Thanks in advance.</p>
  
  <pre><code>    print "&lt;a href=\"http://somewebsite.com/test.php?Id="+str(val)+"&amp;m3u8="+lyrics+"&amp;title=test\"&gt;"+str(i)+ "&lt;/a&gt; &lt;br /&gt;";
  </code></pre>