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 <email@example.com>
|All times are GMT. The time now is 04:42 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.