Add a function to create a dictionary from a list
The function takes the input list and creates a dictionary with its
keys being items from the list and the values for the keys being
number of times that item repeats in the list.
Add a function to write dictionaries to a file
Take the input dictionaries and write them to a file specified during
the launch of the program.
Main part of the program
Erase the output file, then use all of the previously written
functions to read files and create separate statistics for words and
characters and write them to the output file.