How can I read a text file like in android app:
\"1.something written 2.in this file 3.is to be read by 4.the InputStream ...\"
so I can be
File fe=new File(abc.txt); FileInputStream fis=new FileInputStream(fe); byte data[]=new byte[fis.available()]; fis.read(data); fis.close(); String str=new String(data); System.out.println(str);