I've tried, searched a lot of things here, but non of those seem to work. (The file has 5000 rows) I keep getting error massages. For example with AssetManager: Cannot resolve method 'getAssets()' -> and in the code getAssets is red.
private static InputStream getReadTextFromAssets() throws IOException {
AssetManager assetManager = getAssets();
InputStream file = assetManager.open("tryToRead.txt");
return file;
}