python - IOError while reading files -
from python pick file reading.is there specific folder,or pick anywhere on system given filename , extension.is there need mention absolute path. getting error while reading txt , csv files no such file or directory. f=open('info.csv') print f handle above file.but don't handle .txt,both in same folder.why give error?
by default, python checks requested file in same directory program file in. if want python check file in other location, have specify absolute path.
about error, nothing can said unless share code.
Comments
Post a Comment