I am writing an application for the Android platform. My purpose is; I search the word that I wrote on edit text from a text file. To make this; I used to BufferedReader. ( Txt file size too high so that I used to edit custom properties). My code is working perfectly when It found my word in a text file. But When I search meanless something like 'asdsad'. My code gives me the exception. It is about BufferedReader How can I fix it?
custom properties:
idea.max.intellisense.filesize=999999
My codes:
String text = "";
        BufferedReader reader;
        try {
            InputStream is = getAssets().open("word_families_kopya.txt");
            reader = new BufferedReader(new InputStreamReader(is));
            String line = reader.readLine();
            String translating_string = editText_words.getText().toString();
while (!line.contains(translating_string) && line.toString() != null) {
    line = reader.readLine();
Log.i(TAG, "onClick: " + line); cevirilmis_textview.setText(line);
}
    } catch (IOException e) {
        e.printStackTrace();
    }finally {
    }
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
        }
Exception message:
read: unexpected EOF!
 
    