title: Find files in a folder using Java
body: <p>What I need to do if Search a folder say <code>C:\example</code></p>
  
  <p>I then need to go through each file and check to see if it matches a few start characters so if files start</p>
  
  <pre><code>temp****.txt
  tempONE.txt
  tempTWO.txt
  </code></pre>
  
  <p>So if the file starts with temp and has an extension .txt I would like to then put that file name into a <code>File file = new File("C:/example/temp***.txt);</code> so I can then read in the file, the loop then needs to move onto the next file to check to see if it meets as above.</p>