def METHOD_NAME(filePath, appends):
    if not os.path.exists(filePath):
        fatal_error("no such file: %s" % filePath)
    lines = []
    with open(filePath, 'r+') as fp:
        for line in fp.readlines():
            lines.append(line)
            for append in appends:
                if append.new_line in line:
                    fatal_error(
                        "has added the counter for table, new_line = %s" %
                        append.new_line)
                if append.seek_match:
                    continue
                if append.seek_line in line:
                    lines.append(append.new_line)
                    append.seek_match = True
    for append in appends:
        if not append.seek_match:
            fatal_error(
                "can't match the seek_line(%s), please check the file" %
                append.seek_line)
    with open(filePath, 'w+') as fp:
        fp.write("".join(lines))