I think you never understand my problem. My problem is to count the total no of word, space, line, number in the string of character.
for eg.
consider a string
My name is harish. I am going to school.
In this above string.
total no. of line is 2,
total no of word is 9,
total space is 8,
total character is 39.
please help me to solve my problem.