import os print os.path.exists('C:/Python25/myPrograms/netflix/test.txt') d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r') d.readline() returns true in the shell but prints no text even though the document contains text. d.name returns nothing, d.name() raises an error.