Android Studio: Asset File is not being read correctly by InputStream/Reader : I want to build my own password generator. Therefore I created files containing all symbols, which are currently lying in the manually created folder "assets". I also created a method, that shall return a single files content as a string array. The method already seems to recognize the given files because it catches no "FileNotFoundException" and it gets the file's amount of lines correctly. Now my problem is, that the Array returned does not contain the file's content but just an amount of "null"s, corresponding to the file's amount of lines.
I hope that information will do.
Can anyone help me?

I already tried using different Charsets and moving the files to the folder "/res/raw/".

public String[] getList(String filename) {

        String[] zeichenliste = new String[0];

        try {
            InputStream is = getAssets().open(filename);
            BufferedReader br = new BufferedReader (new InputStreamReader(is));
            int length = 0;

            while (br.readLine() != null) length++;
            zeichenliste = new String[length];

            br = new BufferedReader (new InputStreamReader(is));
            for (int i = 0; i < length; i++) zeichenliste[i] = br.readLine();
            br.close();
            is.close();

        } catch (IOException e) {
            e.printStackTrace();
            return(null);
        }
        return zeichenliste;
    }

