title: How to open a .dat file in java program
body: <p>I was handed some data in a file with an .dat extension. I need to read this data in a java program and build the data into some objects we defined. I tried the following, but it did not work  </p>
  
  <pre><code>FileInputStream fstream = new FileInputStream("news.dat");
  BufferedReader br = new BufferedReader(new InputStreamReader(fstream));
  </code></pre>
  
  <p>Could someone tell me how to do this in java?</p>