I feel like I'm missing something obvious, but I'm having trouble passing a CSV file to CSVReader
, which takes a Reader
in its constructor. I can use AssetManager.getAssets()
, but that returns an InputStream
and I can't get the file path from there, which the Reader constructor needs. My asset path is
src/main/assets/dbsource/My.csv
I need to get this into
CSVReader csvReader = new CSVReader(new FileReader(csvPath));
I just can't get the path! Thanks.