0

I have some problem with the txt file location in my program that as we know that ever machine has its own path (C:\user....) so how we can change this automatically so that the program can run on any machine for example, if I have a dell machine and it store my file in ('c:\dell\user..) And now supposed my friend have a hp machine and it store file with path ('c:\hp\user.....') So how can we change this automatically so that the program can run on any machine with python

  • You can create a folder in the ```Program Files```. Whenever you install a new program, it always stores its files in ```Program files```. Then you can store the ```txt``` file in that folder –  Jun 10 '21 at 04:41

0 Answers0