I'm tasked with implementing a search function that will search through several large (couple MB) log files and return the lines that contain the keywords. Log files are constantly being added to the pool so the search has to be dynamic every time.
Would it make sense to create a MemoryMappedFile for each file and then iterate through each line, matching the keywords? If not, what would be a better way to go about it?
Any links to example code would be much appreciated.