Open a file for reading : Open : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Open »

 

Open a file for reading


inPath = "input.txt"

file = open(inPath, 'rU')
if file:
    file.close()
else:
    print "Error Opening File."



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo File
» Open