Apr-23-2020, 11:39 AM
Hi,
Im using this code to create a file with the username as the title and the password inside the file.
atm it saves in:
E:\Work\School\Computer Science\Python\Code
I want it to save in:
E:\Work\School\Computer Science\Python\Code\User Info
thanks
Im using this code to create a file with the username as the title and the password inside the file.
user_details = open(new_username_1 + ".txt","w") #creates a new file called "username".txt user_details.write(new_password_1) #writes in the file what the users password is user_details.close() #saves and closes the filehow what I get this to save to a specific folder that I have created
atm it saves in:
E:\Work\School\Computer Science\Python\Code
I want it to save in:
E:\Work\School\Computer Science\Python\Code\User Info
thanks