android - csv FileNotFoundException: ENOENT -


i trying access csv file assets app , filenotfoundexception. same when try access elsewhere. idea should doing here? log messages work fine until then. error on logcat follows.

tag text system.err java.io.filenotfoundexception c:\users.....\assets\cms.csv: open failed enoent (no such file or directory)

for code:

br = new bufferedreader(new filereader ("c:\\users\\srihari\\workspace\\cmshealthcare\\assets\\cms.csv")); 

any appreciated!

thanks in advance!

dont point file system on computer...instead use getassets method target filesytem in raw folder gets bundled apk (the binary of app)

    br = new bufferedreader(new inputstreamreader(getassets().open("cms.csv")));  

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -