public void textCreator() throws IOException, ParseException {
        Permutas_Main rvp1 = new Permutas_Main();

        // Declare some variables
        String date = "";
        String towrite = "";
        String path = "";

        // GET ROOT FILE
        File dir1 = new File(onMac);
        //"C:/Documents and Settings/fsimon0/My Documents/Cubisima Final/"
        String[] datefolderChildren = dir1.list();
        //System.out.println(datefolderChildren[2]);

        String allstring = "";

        // GET ALL date FOLDERS
        for (int i = 0; i < datefolderChildren.length; i++) {
            if(datefolderChildren[i].contains("$")){
                continue;
            }
            date = datefolderChildren[i];
            // APPLY ALL ALGORITHM TO ALL datefolders
            String enclosing = onMac + date + "/permutas/anuncios/";
            //"C:/Documents and Settings/fsimon0/My Documents/Cubisima Final/"+date+"/permutas/anuncios/"
            System.out.println("enclosing" + enclosing);
            File dir = new File(enclosing);
            String[] individualHTMLChildren = dir.list();

            File theTXTFile = new File(onMac + date + "/Cubisima -" + date + " - Permutas.csv");
            //"C:/Documents and Settings/fsimon0/My Documents/Cubisima Final/"+date+"/Cubisima -"+date+" - Permutas.csv"
            
            FileWriter aFileWriter = null;
            try {
                aFileWriter = new FileWriter(theTXTFile);
            } catch (IOException e1) {
            }
            if (aFileWriter != null) {
                aFileWriter.write(headers);
            }

            if (individualHTMLChildren != null) {
                for (int j = 0; j < individualHTMLChildren.length; j++) {
                    String fn = enclosing + individualHTMLChildren[j];
                    System.out.println("filename:" + fn + "progress:"
                            + (float) j / individualHTMLChildren.length + "%"
                            + "-" + i + "/" + datefolderChildren.length + "%");

                    if (aFileWriter != null) {
                        path = date.replace(",", ";") + "," + individualHTMLChildren[j].replace(",", ";");
                        if (individualHTMLChildren[j].startsWith(".") || 
                                individualHTMLChildren[j].endsWith(".csv")) {
                            continue;
                        }
                        towrite = rvp1.myStringExtract(fn) + path + "\n";

                        ///// MAKE UNIQUE HASHTABLE
                        String code = getCodeFromURL(fn);
                        makeUniqueHashTable(code, date, towrite);
                        /////---------------

                        aFileWriter.write(towrite);
                        allstring = allstring + towrite;
                    }
                }
                aFileWriter.close();
            }
        }
        File theAllTXTFile = new File(onMac + "/CubisimaCB - AllPermutas.csv");
        //"C:/Documents and Settings/fsimon0/My Documents/Cubisima Final/CubisimaCB - AllPermutas.csv"
        FileWriter allFileWriter = new FileWriter(theAllTXTFile);
        allFileWriter.write(headers);
        allFileWriter.write(allstring);
    }