Tuesday, May 22, 2012

FileInputStream using package path

I am trying to read a file like :



FileInputStream fileInputStream = new FileInputStream("/com/test/Test.xml");


I am always getting the file not found exception. How can i make it work? Will the inputstream takes the relative path or not?





No comments:

Post a Comment