I'm reading a big raw file into a bytes array and converting it into a string and then split them using a delimiter.
is = ctx.getResources().openRawResource(fileid);
bytes[] b = new byte[is.available()];
is.read(b);
str = new String(b);
Android documentation says is.available() method returns only an approximate value. Also my file is too big. Is this a good way to read this file and convert it into string? Or is there any other good method to accomplish this? It will be helpful if you can provide an example.