I create a python script that outputs the result in a text file and it works, but when I convert it to exe file, it doesn't create the the textfile.
myfile = open("Mental abilities.txt", "w", encoding="UTF-8")
#any codes
myfile.close()
I used pyinstaller and auto-py-to-exe to covent python script to exe file.