How To/python/

#!python
 
"""
Read file ad once.
"""
 
import os.path
 
if os.path.exists(fname):
    f = open(fname)
    fdata = f.read()
    print fdata
    f.close()
else:
    print 'Cannot find file.';