title: Difference between python readline() and Java's Scanner class nextLine()
body: <p>What is the difference between Python's readline() and Java's Scanner class method nextLine()?</p>
  
  <p>nextLine() looks for the next line separator character which could be something other than "\n" as written here:</p>
  
  <p>http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html#nextLine()</p>
  
  <p>Does the Python readline() method do the same? This is important because my file could have other line separators, but I need to look for specifically the new line character.</p>
  
  <p>Any ideas?</p>