def saveResults(results, maxNumDupsWanted):
    """Takes in a dictionary with a MD5 hash for the key, and a list of file
        paths as the value, also a number that will be used to see how many
        times to write results to the file

        :param results: A dict, A hash for the key, a list for the value
        :param maxNumDupsWanted: An Int, tells how many files paths to write to the file
    """
    print('Saving the hashes...')
    with open('duplicates.txt', 'w') as textFile:
        for k, v in results.items():
            if len(v) > maxNumDupsWanted:
                textFile.write('----MD5sum: {}----\n'.format(k))
                count = len(v)
                for i in v:
                    if count > 1:
                        textFile.write('{}\n'.format(i))
                    else:
                        textFile.write('{}\n\n'.format(i))
                    count -= 1
    print('Done!')
