Challenge One

Write a program that reads a text file and reports:

  • number of words in the file
  • number of lines in the file
  • average length of the file line (in words)
  • average length of the file line (in chars)