Added file output to Wordcount.