title: [file].dat into readable file in JAVA
body: <p>I am trying to read the content of a .dat file into JAVA, I know that it should content alphanumeric characters, but when I apply my method to read it, I can only see special characters. I guess that there a way to encode the .dat characters into human readable characters that I can't find out. </p>
  
  <pre><code>String textFile = "C:(...).dat";
  
  
  
  BufferedReader reader = null;
  BufferedReader reader2 = null;
  String line = "";
  String line2 = "";
  String textSplitBy = ";";
  
  try{
      FileInputStream fis = new FileInputStream(textFile);
  
      reader = new BufferedReader(new FileReader(textFile));
      reader2 = new BufferedReader(new InputStreamReader(fis));
  
      while ((line = reader.readLine()) != null)
      {
          String[] test = line.split(textSplitBy);
  
          line2 = reader2.readLine();
  
      }
  }catch (FileNotFoundException e){
      e.printStackTrace();
  }catch (IOException e){
      e.printStackTrace();
  } 
  </code></pre>
  
  <p>The object line and line2 give the exact same result : </p>
  
  <p>url=<a href="http://postimg.org/image/oi4w9h8d1/" rel="nofollow">http://postimg.org/image/oi4w9h8d1/</a></p>