title: How can we write in existing file(.txt)in sdcard in android
body: <p>I want to edit a .txt file which is stored on an sd card. In my app I have to write user activity data. </p>
  
  <p>So, whenever a user opens the app and does something, the .txt file should be updated with  new data.</p>