Re: [Tutor] find() doesnt work as expected

2010-01-02 Thread spir
MK dixit: > At first, happy new year to all of you. > > I am trying to write a little script which uses one file > as input and looks if the string from this file are in target file. And > if not prints out that line/string so that i know which strings must > be added to complete the target file.

Re: [Tutor] find() doesnt work as expected

2010-01-02 Thread Alan Gauld
"MK" wrote I tried this but it gives nothing out: Try putting some debug print statements in - for example print the option filenames to prove you got them ok, print progress markers like adfter opening the files Then print a message for each string found.. for a in infi: found = ftck

[Tutor] find() doesnt work as expected

2010-01-01 Thread MK
At first, happy new year to all of you. I am trying to write a little script which uses one file as input and looks if the string from this file are in target file. And if not prints out that line/string so that i know which strings must be added to complete the target file. The format of the targ