Compute the average line length of a file