i have file , want parse data file. tried can't data want. tried copy/paste of .data file didn't work because of character included in file.
link of file http://bit.ly/11megwg
i don't know type of file this?
how decode this?
inputstream = null; = getresources().openrawresource(r.raw.myfile); inputstreamreader isr = null; isr = new inputstreamreader(is); bufferedreader br=new bufferedreader(isr); stringbuilder sb=new stringbuilder(); string line; try { while((line=br.readline())!=null){ system.out.println(line); sb.append(line+"\n"); } isr.close();
you using openrawresource()
. has nothing assets/
folder. openrawresource()
res/raw/
folder.
use getassets().open()
open file within assets/
.
Comments
Post a Comment