I need to read in a textfile, where in each line are two strings:
how can I read in each line and put the first string into one variable,
the second into another variable
with just one string per line, I did:
f = open(myfile, 'r')
for filename in f.readlines():
mylist.append(string.rstrip(filename)) #remove \n
Christoph Lehmann <firstname.lastname@example.org>
|All times are GMT. The time now is 01:21 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.