Hi I am a newbie and I am stuck!
I need to read 2 files. Say file A and file B.
while reading file A, i also need to open file B and search the entire file for a specific keyword and then update file C.
For example, when reading file A, I identify a keyword "apple" then I open and search file B for all types of apple in file B (example, "green apple" and "red apple"
, next I update file C. Then the program continue to read file A for the next keyword and found say "melon" and then open file B and do the search again and update file C. I was trying a while within a while loop but looks like it should not be done that way. Any other way??
I need to read 2 files. Say file A and file B.
while reading file A, i also need to open file B and search the entire file for a specific keyword and then update file C.
For example, when reading file A, I identify a keyword "apple" then I open and search file B for all types of apple in file B (example, "green apple" and "red apple"