Saturday, November 29, 2014

how add path to open()

I join to topic with my problem

I want to create new file with login and password in new file and I can do it with code below, but I don't know how save this new files in one folder users

def rejestracja(login, haslo): save=None login_tmp=login haslo_tmp=haslo save={login_tmp:haslo_tmp}

 filehandler
=open(login,"wb")
pickle
.dump(save,filehandler)
filehandler
.close()
filehandler
=open(login,"rb")
file
=pickle.load(filehandler)
filehandler
.close()
print file
raw_input
("\n\nWcisnij [ENTER]: ")

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b1e9cf18-1f8c-4829-ad2f-b1aededd984f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment