I am creating a file with the help of python programming language in my hard drive. The code I am using is:
file = open('test.txt','w')
file.write('Blah Blah')
file.close()
This code creates test.txt
file in hard drive but the file is saved in the default location of project. I want to save the file in other location like desktop or somewhere else. Can anyone tell me how to do this.
I am using python 3.5
Thanks in Advance,