java - How to edit a resource file from within an android app? (Android Studio) -
i'm creating android app utilizes log. i've placed file entitled "log.txt" in "raw" resource folder. have figured out how open inputstream using openrawresource , not sure how open can use printwriter it. i have tried accessing file pre-created on target device, have not succeeded. if explain me either how open resource file printwriter, i'd appreciate it. however not sure how open can use printwriter it. you can't. resources read-only @ runtime. welcome use inputstream write copy of resource's contents file on filesystem (e.g., on internal storage ), though.