I am trying to read & write a text file, what am I doing is 1- Have made a text file raw folder in res (in my project) 2- try to read this file from code, inside an activity, below is the code
InputStream inputStram=appContext.getResources().openRawResource(R.raw.TestFile); byte btArray[]= new byte[1000]; inputStram.read(btArray); Log.i("--------------------",btArray.toString()); }catch(Exception exp) { Log.i("--------------------","File Exception"); } ->2ndly how I could write to a file. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---