file.readline() reads data from a file until it reaches a line feed (ASCI 10) or the end off the file. The data is returned with the trailing line feed stripped off.