I am new to Android development and was wondering what is the best way to accomplish the following:
Suppose I have a .txt file in a folder in my android app (e.g. folder A somewhere in my app's folder hierarchy) . I would like to read and process each line of this .txt file.
I want to write a string into a .txt file and put this file into an existing folder (e.g. folder B).
this is my code and I tried many different way to find a way to read the json file. I made it database.json then I tried database.txt . It was in res/raw folder now I copied also in asset folder, but nothing is helpful. can you please check it is you see anything incorrect.
I am developing an android app in netbeans. I am trying to read CSV file using opencsv. When I put the file in resources folder and try to read it from there, there's an error while building saying invalid resource directory. Where should I store csv file so that it can be read each time the app starts?