with open("header.html", "r") as top, open("footer.html", "r") as bottom, open(
"resume.html", "r"
) as middle:
header = top.read()
content = middle.read()
footer = bottom.read()
with open("index.html", "w+") as index:
index.write(header)
index.write(content)
index.write(footer)