by logtoavi » Fri Dec 19, 2008 8:10 am
this is my method for reading .txt file and i am calling this file like
String about = readTextFile(r.getString(R.drawable.about));
public String readTextFile(String s)
{
try
{
FileInputStream fIn = new FileInputStream(s);
// Read file with UTF-8
InputStreamReader isr = new InputStreamReader(fIn,"UTF-8");
char[] inputBuffer = new char[255];
isr.read(inputBuffer);
String readString = new String(inputBuffer);
return readString;
} catch (Exception e) {
return e.toString();
}
}
now I am getting exception java.io.FileNotFoundException
Thanks and Regards
Avishek Kumar