Core Java Tutorials

Home Index About

Program 14:

  • Get all characters from the file, count number of lines, words, characters and display on the screen.
  • Input:

    myfile.txt:

    Output: