with open("file.txt") as f: something(f)