Getting the number of lines, words and characters

Question:

This program gets the number of lines,characters and words from a file using java.

I can't understand what the read function does. Can anyone help explain?

try and catch exception means to catch error. Because fs.available() will return IOException when it has a problem. So to recover from the problem you need to use try {} catch()

15th January 2018

- has nothing to read anymore. In that case the while loop will stop and output the number of line, characters and words.
After all the output it will close the file.

15th January 2018

This function will get the user input file name and store inside a variable name filename.
fs.available() will return a value of the remaining bytes of the file. When it return 0 means the file has -

15th January 2018

I don't understand what you mean Mogan_Raj. Please explain.

11th January 2018

CAN FUGSI

11th January 2018

Leaderboard

Rank Username Points
1Kavenasiva2915
2Kavitha1390
3celine_lou.616990
4Vaishu 855
5cassiopeia360
6Stevie255
7MOGAN_RAJ175
8singamsingu165
9Preshan96135
10madhu490
11Haresh75
1275
13Haneish60
14Mr.R60
15MingXuan45
16Sudheish 45
17troytan9845
18Aswwinyy30
19Carmen140630
20Anushka_Rao30