public void readData(String file) throws IOException{
        BufferedReader dataBR = new BufferedReader(
		   new InputStreamReader(
                      new FileInputStream(file), "UTF-8"));
        String line = "";

        ArrayList<String[]> dataArr = new ArrayList<>(); //An ArrayList is used because I don't know how many records are in the file.

        while ((line = dataBR.readLine()) != null) { // Read a single line from the file until there are no more lines to read

            

            String[] value = line.split(",");
            

            dataArr.add(value); // Add the "club" info to the list of clubs.
        }

       /* for (int i = 0; i < dataArr.size(); i++) {
            for (int x = 0; x < dataArr.get(i).length; x++) {
                //System.out.printf("dataArr[%d][%d]: ", i, x);
               // System.out.println(dataArr.get(i)[x]);
            }
        }*/
        for(String[] x:dataArr) parseString(x);
        for(Clase x:clases) x.print();
        WriteData();

       
}