I want to read a text file using python. I've done it already in my old laptop and desktop computer, but when I try it on new system, error appears: file directory is not valid and file doesn't exist.
txtFile = open("D:/folder/m.txt")
I can't even install external libraries which contains the code above! I am using windows 8 and latest python 2.7
edit: guys, my main problem is the open() method always returns "file directory is not valid","There is no such a file in that directory" even when it's completely valid and exist! I tied it with various files and directories and it doesn't work at all. it works on my old systems but not working on this new laptop. I can't even use external libraries because the open() method is not working in anywhere even in libraries. please help me.