working .dat extension file in android
<p>I need to use a file of type .dat in Android, but I cannot reference to the file ,application doesnt realize that file</p>

<p>Is that code correct?</p>

<pre><code>File sdcard=Environment.getExternalStorageDirectory();
  File file=new File(sdcard,"dictionary.dat");
  if(file.exists()){
         Toast.makeText(context,"file exists",Toast.LENGTH_LONG).show();
        }
  else{
        Toast.makeText(context,"NOT exists",Toast.LENGTH_LONG).show();
    }
 String path=file.getAbsolutePath();    
 FileInputStream fis=new FileInputStream(path);
 DataInputStream dawgDataFile=new DataInputStream(fis);
</code></pre>

<p>maybe I coded in wrong way, I just need to use "dictionary.dat" file , and I have stored it in raw folder. Button application says "NOT exists" . help please</p>
