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.


f = open('c:/sri/', 'r+')



Who Voted for this Article, is a website that will allow everyone to share their knowledge, tip or information through community micro blogging.