How do you read a specific line of a text file in Python? import linecache line = linecache.getline(filepath,linenumber)