I have some programming experience, but I have no experience in working with text files in android. I am using android studio, and making an app which gets a String
from a file, and than displays it.
I did my research, and according to android.developer.com I need to use FileReader
, but I still have some questions:
1.In which folder do I put the .txt files in?
2.How do I make a FileReader
reference to the .txt
file?
I have searched this site and other sites, and there are a lot of questions like mine, but none answer the questions I have..
EDIT: Can someone please give me the whole code/ step by step instructions on how to do this. From where to place the file, to how to access and make a string out of it