public void removeDupilcates(String directory, String file) {
        Set<String> uniqueLines = new LinkedHashSet<String>();
        this.existsCreate(directory, file);
        File input = new File(directory, file);
        BufferedWriter writer;
        BufferedReader reader;
        String line;

        try {
            reader = new BufferedReader(new FileReader(input));

            try {
                while ((line = reader.readLine()) != null) {
                    uniqueLines.add(line);
                }

                reader.close();
            } catch(IOException e) {
                reader.close();
                return;
            }

            writer = new BufferedWriter(new FileWriter(input));

            try {
                for(String current: uniqueLines) {
                    writer.write(current);
                    writer.newLine();
                }

                writer.close();
            } catch(IOException e) {
                writer.close();
                return;
            }
        } catch (Exception e) {
            System.out.println(e);
            return;
        }
        return;
    }