I am trying to read a txt file from assets folder like that:
descriptor = context.getAssets().openFd("openAccess.txt");
reader = new FileReader(descriptor.getFileDescriptor());
but I am getting this exception:
java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
I don't know what is the problem?
How about this:
InputStream in = context.getAssets().open("openAccess.txt");
reader = new InputStreamReader(in);