hey guys, The following is my code:
OutputStreamWriter out2 = new OutputStreamWriter(openFileOutput("myfilename2.txt",1)); sa_lt="3 2 1"; out2.write(sa_lt); // close the file out2.close(); InputStreamReader in2 = new InputStreamReader(openFileInput("myfilename2.txt")); in2.read(buf,0,5); sa_lt = String.valueOf(buf); status.setText(sa_lt); in2.close(); I get null in 'buf' (the buffer i.e). I have defined it as private char[] buf on the top. Why m I getting this error. Does anyone happen to know. Please enlighten. Thanks, Abhyudai -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en