how to make a hidden file in python

Solutions on MaxInterview for how to make a hidden file in python by the best coders in the world

showing results for - "how to make a hidden file in python"
Johanna
22 Jul 2019
1import os
2# making a file called myFile.txt
3open('myFile.txt', 'w')
4
5# giving the file an attribute for hidden
6os.system("attrib +h myFile.txt")