8/30/2023 0 Comments Android manager overwrite filesThrough this I have verified whether the content is stored or not, and made sure that the file exist with the content, but when I try to overwrite that file from another activity using: FileOutputStream create_file = null Ĭreate_file = new FileOutputStream(new File(PasswordUtil.pswrd_file), false) Toast.makeText(getApplicationContext(), getText, Toast.LENGTH_SHORT).show() While ((getText = inRd.readLine()) != null) InputStreamReader isr = new InputStreamReader(open_file) īufferedReader inRd = new BufferedReader(isr) Osw = new OutputStreamWriter(create_file) Īnd I have opened that file in another activity read the contents line by line using: FileInputStream open_file = openFileInput("filename.txt") I have created one text file in one activity using: FileOutputStream create_file = null Ĭreate_file = openFileOutput("filename.txt", Context.MODE_WORLD_WRITEABLE) I'm trying to overwrite a text file from android application, what I have done yet is,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |