How do I read a whole file and make a list of the items in the file?
<p>I have a text file that looks something like this:</p>

<pre><code>acorn squash 2365989335
alfalfa sprouts 3988549919
almond 9277904615
anchovy 3352461607
anise 0846115239
apple 7827295890
apricot 0662812477
artichoke 5974131818
asparagus 8485010646
</code></pre>

<p>it continues on for another couple hundred items. The list has the item name then the UPC right next to it, then a new line and it continues just like that. </p>

<p>I am supposed to read this file (foodUPC.txt) and put all of the items into a list for use later. I am stuck trying to put all of these items into a list. Later, I have to read all of the items a return an item based on its UPC. I also don't know how to do that.</p>

<p>Thank you for all of your help! </p>
