File Practice

  1. Write a function that opens a file specified by the user and prints out the average line length.
  2. Write a function that reads in some indefinite input from the user and outputs it all to a file.