title: How to read records from a text file?
body: <pre><code>I tried this:
  public static void ReadRecord()
      {
          String line = null;
          try
          {
          FileReader fr = new FileReader("input.txt");
          BufferedReader br = new BufferedReader(fr);
  
          line = br.readLine();
           while(line != null)
           {
                  System.out.println(line);
           }  
  
          br.close();
          fr.close();
          }
          catch (Exception e)
          {
          }
      }
  }   
  </code></pre>
  
  <p>It non stop and repeatedly reads only one record that i had inputtd and wrote into the file earlier...How do i read records and use tokenization in reading records?</p>