how to create a new bufferedreader for every file in a directory java
<p>I have a bunch of files in a directory, I want to read all of them simultaneously.
In my code he will read all the files but one by one.</p>

<hr>

<pre><code>public void OptimiserListeDesTermes(String repertoireToFileTermes) throws IOException {

    File dir = new File(repertoireToFileTermes);

    if (dir.isDirectory()) {

        File[] list = dir.listFiles();
        String nameFich = "";
        if (list != null) {

            for (int i = 0; i &lt; list.length; i++) {

                nameFich = list[i].getPath();

                FileReader filereader = new FileReader(ReadPath(nameFich));

                BufferedReader reader = new BufferedReader(filereader);

            }
        }
    }
}
</code></pre>