Answers for "python create hidden files"

2

how to make a hidden file in python

import os
# making a file called myFile.txt
open('myFile.txt', 'w')

# giving the file an attribute for hidden
os.system("attrib +h myFile.txt")
Posted by: Guest on October-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language