0

I am trying to make a text document store a username but I want the file it creates to be hidden. I haven't been able to find a way to do this so far.

def save_user(self,*args):
    usr = open("user.txt","a")
    usr.write(self.usrentry.get())
    self.usrentry.delete(0, 'end')

The program would be running on Windows 10 and Windows XP respectively if there are different methods for these operating systems.

douglas rouse
  • 148
  • 1
  • 2
  • 15

0 Answers0