0

Python file manipulation

im having problem trying to save data name to a .txt file im trying to insert user name and then if it is registered then a message will show that the user is already registered it is tho finished now i need the content of the file is a list but i cant use split() any idea of making a list from the .txt file?

13th Apr 2020, 5:51 AM
CutieRei
CutieRei - avatar
4 odpowiedzi
+ 3
Please show us your complete code by linking it here to get the appropriate help. Thanks!
13th Apr 2020, 8:34 AM
Lothar
Lothar - avatar
0
Why can't you use split? What is the problem? Just specify a delimiter in file. For example while writing to the file separate the data by comma or space or semicolon or anything else and then use split.
13th Apr 2020, 7:21 AM
XXX
XXX - avatar
0
Sorry to make you wait 3hrs.... So basically im too lazy to c&p so im gonna get to detail. Im Using a txt file as a data for name and the file is apended with username created from the main Python file it works and it shows how much user with name and basically i dont want the txt to be easily edited and i can convert string to binary but converting back to string is so hard and the idea of converting it through list doesn't work.... In simple matter: i want the text file encryption binary with each word is a binary and can be printed as string as they was(cross file)
13th Apr 2020, 12:37 PM
CutieRei
CutieRei - avatar
0
ok Simple question from this Discussion: Convert Binary to string with file handling because i want the binary in seperate file
13th Apr 2020, 3:38 PM
CutieRei
CutieRei - avatar