Searching for line of one text file in another text file, faster
问题 Is there a faster way to search each line of one text file for occurrence in another text file, than by going line by line in both files? I have two text files - one has ~2500 lines (let's call it TxtA), the other has ~86000 lines(TxtB). I want to search TxtB for each line in TxtA, and return the line in TxtB for each match found. I currently have this setup as: for each line in TxtA, search TxtB line by line for a match. However this is taking a really long time to process. It seems like it