I am trying to read a simple text file in my sample Android Application. I am using the below written code for reading the simple text file.
InputStream inpu
Having a file in your assets folder requires you to use this piece of code in order to get files from the assets folder:
yourContext.getAssets().open("test.txt");
In this example, getAssets() returns an AssetManager instance and then you're free to use whatever method you want from the AssetManager API.