Register | Login

python file full path for windows

Posted by jaisrimakster (#95) 2007 days ago (Editorial)

Normal windows path from 'c:' will not work in python for windows.


Solution: In order to open a file in windows using python then we need to use c:/foldername/filename.


e.g.


f = open('c:/sri/text.py.txt', 'r+')


 


 



Who Voted for this Article



YourWiz.com, is a website that will allow everyone to share their knowledge, tip or information through community micro blogging.