how to write a program to read contents from a file and check how many words are palindrome...??