def inject_text(htmltext, intext):
    """
    Insert text from a file into an html string.

    Arguments:
        htmltext -- string where text will be added.
        intext -- input file

    Returns: text with intext added between <p></p> characters
    """
    parts = htmltext.split('<p></p>')
    with open(intext, 'r') as infile:
        adddata = infile.read()
    return "%s<p>%s</p>%s" % (parts[0], adddata, parts[1])