Size of file which we get through AssetManager function getAssets in Android
<pre><code>AssetManager mngr = getAssets();
test_file = mngr.open("sample.txt");
</code></pre>

<p>above test_file variable is of InputStream type. Any way to calculate the file size of sample.txt from it?</p>
