title: How to erase part of a read only file when printing it
body: <p>Practically, I'm reading a file line by line and then printing onto the screen in pygame. </p>
  
  <pre><code>textbeingread = f.readline()
  </code></pre>
  
  <p>The code takes 'textbeingread' and uses that to show text on the screen but because each piece of writing is on a separate line it has the little icon to show that there a line underneath it (not exactly sure how to show it). I was just wondering if there was a way (because each line is a different length) to omit the last character in the line but use everything else. Thanks in advance :)</p>