I have following problem: I want to split a string into half that always has different characters and always the same length. How would I do this since I can't specify a character with split().
import secrets
# generate string
string = secrets.token_hex(32)
# write string into file
write_string = open("string_file", "w").write(string)
# read and split string
read_string1 = open("string_file", "r").readline(32)
print(read_string1)
# i can only specify readline from 0-32 but how can I specify reading from 33-64 ?
read_string2 = open("string_file", "r").readline()
print(read_string2)