private ArrayList readingFiles(String nameFile) {

        ArrayList listRowsFile = new ArrayList<>();
        boolean notEmpty;
        String lineFile;
        int lineNumb = 0;

        try {
            BufferedReader readFile = new BufferedReader(new FileReader(DirectoryConfig.getInstance().getExtractDirectory() + nameFile));
            notEmpty = readFile.ready();
            if (notEmpty) {
                while (readFile.ready()) {

                    lineFile = readFile.readLine();
                    lineNumb++;
                    listRowsFile.add(lineFile);
                }
                readFile.close();
            } else {

                System.out.println(" The file selected is empty.");
            }
        } catch (IOException IOerror) {

            System.out.println("I/O ERROR: " + IOerror);
        } catch (Exception otherError) {

            System.out.println("Other Exception: " + otherError);
        }
        return listRowsFile;
    }