Hai Friends,
Iam using J2ME , i can read a text file from jar (in res folder) by using
InputStream is = getClass().getResourceAsStream("help.txt");
StringBuffer sb = new StringBuffer();
try{
int chars, i = 0;
while ((chars = is.read()) != -1){
sb.append((char) chars);
}
return sb.toString();
}catch (Exception e){}
but i want write a data to the text file, i doknow how to write please any one help me for this problem.