I am trying to extract lines from a directory of log files, all saved in .txt format, and extract these to another file so that I can further filter through the data.