getting input stream from a file
how to get inputstream from a file
[41 byte] By [
Ravindrana] at [2007-11-26 17:46:24]

i wrote the code as follows,File test=new File("some.txt");If I use test.getInputStream() , I am getting error, what is the another way?
FileInputStream fileInputStream= new FileInputStream("C:\\test.xml");
InputStream in = (InputStream)fileInputStream;
InputStreamReader isr = new InputStreamReader(in);
Take this as an example.
MeTitus