Continuously Save and Auto Increment String Values to File - Android
问题 I have code which saves a String to a file. The problem is that the String is constantly changing (as they are sensor values) but the string is only saved once, then seems to delete the file once closed and open and new one to which it prints only one value. I need it to save each value to the same file, while auto-incrementing to avoid losing any data. Here is my code: UPDATED: I have updated this code to the working version. The code now saves the string to the file, then updates the file