hey... i want to remove duplicate words from a text file.
My file contains one word per line.
So what i need to do is to read line by line to compare the words.
I used gets function t retieve the words and strcmp to compare them but they are not working. I dont why... So please can anyone help me with this.
My fIle looks like...
reason
ressen
leesen
lesser
reason
lesser
And i want to remove the duplicate words i.e. reason ,lesser