Storing text from a file
<p>My file contains the following code:</p>

<p><code>test.asm</code></p>

<p>^^^^^^^^^^^^^^^^</p>

<pre><code>!START:
!LDA #97
!LDX #$A000
!STA, X
!END
</code></pre>

<p>I store the above code in my program in a string called <code>sourcecode</code>.
Every Label (kind of a keyword for me here) begins with an <code>!</code> mark.
Thus, <code>START / LDA / LDX / STA / END</code> are labels which i would like to store.
Now the contents of file may vary.</p>

<p>I would like to know which STL Container can i use to store my <code>Keywords</code>.
Mind you each keyword is to be stored in single element of that container.</p>

<p>If <code>vector</code> can solve my problem, can an example be shown?
My main aim is to use these labels/keywords to pass in functions to be interpreted 
as Mnemonics (which i will define).</p>

<p>Also, would like to know how would i iterate if my vector is of type string: <code>vector&lt;string&gt;</code></p>

<p>Thanks in advance.</p>
