updated with insertion at location of delimiter in existing file