Reads a text based file and removes duplicate entries and then creates a new file without the duplicates and leaving the original file intact. This is ported over from the original C++ code I wrote. This is scripted instead of compiled.