Tuesday, November 14, 2017

Ex No: 11 Frequent words in text file



Aim
            To find the most frequent words in a text read from a file.
Algorithm
·         Start
·         Read the filename
·         Open the file
·         Read each line from the file to count the lowers and words
·         Split each line in to words and count them
·         Print the word and counts
·         Stop 

No comments:

Post a Comment