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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -