title: How to read a file without newlines?
body: <p>In Python, calling e.g. <code>temp = open(filename,'r').readlines()</code> results in a list in which each element is a line from the file. However, these strings have a newline character at the end, which I don't want.</p>
  <p>How can I get the data without the newlines?</p>