07-09-2009, 05:45 PM
I have text files containing 40,00,000 lines. I want to read each line and check if it contains a word then write the line to new file. Problem is time consumption is very higher, it takes about one hour for one file. Please provide some less time consuming way.