def checkfile(findstring, fname):
    """ Checks whether the string can be found in a file """
    if findstring in open(fname).read():
        #print(findstring, "found in", fname)
        return True
    return False