how can i edit the text files in assets folder in android

Writing into /assets directory at runtime? AFAIK that's not possible.

You can put the original file in /assets, and at the first application run copy it over to the /sdcard.