Occurancies of words and chars of all files are added to dictionary and then written to result file