I'm developing a simple android application which needs a text file access! I'm getting `filenotfoundexception` even though I specified the absolute path of the file in File constructor. My code is

```
`File fr = new File("C:/mywork1/Dictionary/src/com/praveen/dictionary/vsn.txt");
                System.out.println(fr.getAbsolutePath());
                Scanner bb = new Scanner(fr);
                System.out.println(fr.exists());
                while((strf = bb.nextLine()) != null)
                {...

```

Some previous questions have answers that suggest using `AssetsManager` instead. I tried that.

```
AssetManager assetManager = Context.getAssets();
InputStream in = null;
in = assetManager.open("vsn.txt");

```

the error I'm getting for this code is

> 
> "cannot make static reference to a non static variable"
> 
> 
> 

At the first line. Kindly help me out with this problem.. I can't even use throws clause since I'm using onCreate method! I changed the settings in the run configuration so that current working directory will contain my text file. Thanks