title: Reading multiple text files from directory line by line JAVA
body: <p>Could someone give me an example of how you could read in a directory of text files and read each text file line by line using Java?</p>
  
  <p>So far I have:</p>
  
  <pre><code>    String files;
      File folder = new File(file_path);
      File[] listOfFiles = folder.listFiles(); 
  
         for (int i = 0; i &lt; listOfFiles.length; i++) {
  
         if (listOfFiles[i].isFile())  {
  
                  // do something here??
              }
        }
  </code></pre>