Hi everyone!! I need to access a txt file from android. The problem is that I need to use the class “File” because I need to know the file size (lenght() method) .
The only solution I have found in the web is
InputStream is = getResources().getAssets().open("myfile.txt");
But InputStream does not have the method “lenght”, and I can't know the size of the file.
How can I get an object “File” from android? Or convert an InputStream to a file?
Thank you very very much