i have a basic doubt.. i have a program that does a particular task..this prg(2) actually works with the o/p from another program(1). The program 1 gives the o/p in the form of a list that is written to a file.. now my program 2 works fine when i take its input as the o/p file but now i want to string in the prg2 to the prg1.
the program one works on a list called masterList.this is written to a file and taken as i/p
my program 2(which is working fine and independent)has these lines:
now, when i string the 2 prg to the first i can just say:
But this doesnt seem to work. but i dont see any difference or mistake
do u see any??
the program one works on a list called masterList.this is written to a file and taken as i/p
my program 2(which is working fine and independent)has these lines:
Code:
f=file("result.txt")# THIS CONTAINS STUFF FROM MASTERLIST FROM PRG1
a=f.readlines()
for i in a:
# do a set of work
Code:
for line in masterList: # do a set of work
do u see any??
Comment