public static void main(String[] args) throws IOException {

        FileReaderStrategy frs = new ReadFromTextFile(6);
        FormatStrategy format = new PipeSeparatorFormat(frs);

//      Shows formatted list
        for (String s : format.getFormattedList()) {
            System.out.println(s);
        }

        System.out.println("");

//      Returns as Objects
        for (Object o : format.getAsObjectList()) {
            System.out.println(o.toString());
        }

        System.out.println("");

//      Strict removes duplicates
        for (Object o : format.getStrictObjectList()) {
            System.out.println(o.toString());
        }

        System.out.println("");

        List<Contact> mailingList = new ArrayList<>();

        for (String s : format.getFormattedList()) {
            String[] UnitInRecordArray = s.split("\\"+format.getCharacterUsed());
            Contact c = new Contact(UnitInRecordArray[0], UnitInRecordArray[1], UnitInRecordArray[2], UnitInRecordArray[3], UnitInRecordArray[4], UnitInRecordArray[5]);
            mailingList.add(c);
        }

        for (Contact c : mailingList) {
            System.out.println(c.toString());
        }
        
        
//        FileWriterStrategy fws = new WriteToTextFile("newText.txt", false);
//        fws.writeToFileStrict(format);
//
//        FileWriterStrategy fws1 = new WriteToTextFile();
//        fws1.writeToFile(format);
//
//        FileWriterStrategy fws2 = new WriteToTextFile("default2.txt");
//        fws2.writeToFile(format);
//        FileWriterStrategy fws3 = new WriteToTextFile(true);
//        fws3.writeToFile(format);
//
//        FileWriterStrategy fws4 = new WriteToTextFile("C:" + File.separatorChar + "Users"
//                + File.separatorChar + "Kyle" + File.separatorChar + "Desktop"
//                + File.separatorChar + "default3.txt");
//        fws4.writeToFileStrict(format);
//
//    }

    }