title: How to read all txt files in a given directory to look for a string? Java
body: <p>I want to be able to scan all text files in a specified directory to look for a string. I know how to read through one text file. Thats quite easy but how do I make it scan all the content within a bunch of text files in a given directory? </p>
  
  <p>The files will be all be named 0.txt 1.txt 2.txt etc, if that helps at all, perhaps using a counter to increase the name of the file searched then stopping it when there are no more txt files?  that was my original idea but I can't seem to implement it</p>
  
  <p>Thank you</p>