The text.txt file has been created in assets. I check its existence, and writes to me that it does not exist, although it is. What is wrong?
File file = new File("text.txt"); boolean res = file.exists(); String s1 = (res == true) ? ("Да файла") : ("Нет файла"); System.out.println(s1); Displays No