I have a text file in the assets folder that I need to turn into a File object (not into InputStream). When I tried this, I got \"no such file\" exception:
You cannot get a File object directly from an asset, because the asset is not stored as a file. You will need to copy the asset to a file, then get a File object on your copy.