Python file.read() method
<p>I'm reading a text file, line by line, using Python.  Each line is of a variable length.  The first line could be 10 characters, the next one could be 100; there's no way of telling.  Presently, I issue a file.readline() method for each line, process it, and then save it to a database.  This method guarantees me one full line of input.  I'd like to do this faster however.  Is there a way to do a bulk read using the Python file.read() method such that I can guarantee an end-of-line read character when the buffer stops in the middle of a line?  What's the best way to handle this?</p>
