i watched many yt videos and tried for hours to get this right but i have no idea how it works. My goal is to have a saved .txt file and read out an array from it. The simplest way i found ist this but it doesn`t work
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try {
BufferedReader reader = new BufferedReader(new FileReader("list.txt"));
String text;
while ((text = reader.readLine()) != null){
Log.d("finally", text);
}
} catch (IOException e) {
e.printStackTrace();
}
}
but unfortunately the logcat is empty. i think it's the file location maybe because of android but i don't know what's wrong.
Screenschot of the file location. I created an assets folder with txt file in it

I don't develop on android studio, but creating a folder with a text file in it leads me to assume you cant just ask for
list.txt, you have to get to the file for exampleassets/list.txt. correct me if I'm wrong though.