The file is attached "ParsingTextFileCount.java file.dat "
It takes an argument via command line. It reads from the file, the words, number of lines, but I can not get the character count to increment to give me the total characters in the file?
Program produces word count and line count fine, but need character count.
if ((charcount = frs.read()) != -1){
charcount++;
}
Thanks......


Reply With Quote


Bookmarks