title: Tracking while reading a text file in Java
body: <p>I'm trying to build a program with BufferedReader that reads a file and keeps track of vowels, words, and can calculate avg # of words per line. I have the skeleton in place to read the file, but I really don't know where to take it from here. Any help would be appreciated. Thanks.</p>
  
  <pre><code>import java.io.*;
  
  public class JavaReader
  {
      public static void main(String[] args) throws IOException
      {
          String line;
          BufferedReader in;
  
          in = new BufferedReader(new FileReader("message.txt"));
  
          line = in.readLine();
  
          while(line != null)
          {
              System.out.println(line);
              line = in.readLine();
          }
  
  
      }
  
  }
  </code></pre>