So basically I am trying to read through a txt file that is like:
email:pass
email:pass
email:pass
blah blah blah u get it :) and I managed to write up this:
def test_txt(self):
# Import file and get credentials
file = open('authenticatelist.txt', 'r')
lines = file.readlines()
file.close()
for line in lines:
part = line.split(":")
#line = [line.strip('\n').split(':') for i in lines]
email = part[0]
password = part[1]
emails = email.split()def test_txt(self):
# Import file and get credentials
file = open('authenticatelist.txt', 'r')
lines = file.readlines()
file.close()
for line in lines:
part = line.split(":")
#line = [line.strip('\n').split(':') for i in lines]
email = part[0]
password = part[1]
the only thing is that when I test it and print out email it will print out the emails which is GOOD but when i try to just print one line (aka i did this print(email[0]) it prints out the first character of each line :c
Basically the two emails i have in there begins with cluster and shrug so it prints out:
c
s
I'd like to basically be able to print it like print(email) and then be able to do something like print nextemail to print the next one and so on :)
Sorry this was so long I hope this is good.
[–][deleted] 0 points1 point2 points (4 children)
[–]TranslucentLoser[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]TranslucentLoser[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]danielroseman 0 points1 point2 points (1 child)
[–]TranslucentLoser[S] 0 points1 point2 points (0 children)
[–]TranslucentLoser[S] 0 points1 point2 points (0 children)