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