Create the database of words in a text File. Check text file again so as to print the words in a single line.