You may provide size argument in the readline() method, the optional numeric argument.A “ \n”, the trailing newline character is left at the end of the string.If used in text mode then readline() returns string and returns byte object in binary mode.
A few main points about the readline() method: