Hi there guys, I have homework to do a program given as input a document read from a text file will similatae MS words word count tool to create the following statistic:

number of word: 45

number of line: 30

number of white space character: 73

number of non white space character: 241

total number of character (white space + non white space): 314

It just have to display the number of word, lines, number of white spaces and the number of non white space and the total

6 Years
Discussion Span
Last Post by Dani

What have you tried so far? We'll help you, but we need to see you showing some effort. Please post the code that you have so far and we'll help you with any problems you're having with it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.