Is it possible to insert some text in a specified location of a file?
<p>I want to write a code to insert a text file which contains some set of codes which have to be inserted in the Head section of a HTML file. I don't want to do it manually since i have 100s of HTML files in a folder. </p>

<p>Is it possible to tell my code to search for the Head tag and append the given text file below that?</p>

<p>How can we do this?</p>
