SyntaxFix
Write A Post
Hire A Developer
Questions
This should do it:
f = open('myfile.txt') first = f.readline()