Register | Login

Published Articles » Jython

python file full path for windows

Posted by jaisrimakster (#73) 1913 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+')


 


 


Sort News
Username:

Password:

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