Saving my output code to a separate file?
<ul>
<li>identify the individual words in a sentence and store them in a list</li>
<li>create a list of positions for words in that list</li>
<li>save these lists as a single file or as separate files. </li>
</ul>

<p>How would i save my output to a separate file? </p>

<p><a href="https://i.stack.imgur.com/KDKC1.png" rel="nofollow noreferrer">This is my code</a></p>