Possible Duplicate:
Pythonic way to check if a file exists?
Im new to programming so bear with me.
Im wondering, how would you know if a file exists in python?
for example. ~/file.txt
Instead of a directory,the actual file itself within my directory? returning a True statement if the "file.txt" exists?
Thanks everyone.