I'm creating an android app that utilizes a log. I've placed a file entitled "log.txt" in the "Raw" resource folder. I have figured out how to open it to an inputstream using openRawResource
, however I am not sure how to open it so I can use PrintWriter
with it.
I have also tried accessing a file pre-created on the target device, but have not succeeded.
If someone could explain to me either how to open the resource file to a PrintWriter, i'd appreciate it.