def clear(scope, filename):
    """
    Clear the contents of the given file. The file is created if it does
    not exist.

    :type  filename: string
    :param filename: A filename.
    """
    with open(filename[0], 'w'):
        pass
    return True
