Finding 4 character words in a text file
CBSE12D-2016
Problem Statement - Count Words in a Text File
Write a function to count and return the number of words present in the filename passed to it as an argument. Assume that each word is separated by a single space and their is no space in the
beginning and end of the file.
Also demonstrate the use of this function in the main routine assuming a file NOTES.TXT that contains the following text.
This is first line
This is second line
This is third line