title: Get instructions from text file
body: <p>I have a homework. I have to create a hash table and use linked list to solve colissions. The hashtable is working quite good. Part of the asignment is reading a file and parse the contents to get instruccions.</p>
  
  <p>The file contents:</p>
  
  <pre><code>Load("Via Lactea", "Galaxia")
  
  Load("Galaxia", "Sistema Solar", "Sol")
  
  Load("Via Lactea", "Hoyo negro", "001")
  
  Find("Via Lactea","Luna")
  
  Delete("Via Lactea","Jupiter")
  
  Show()
  </code></pre>
  
  <p>My question what's the best (and easiest) way to create a C/C++ program to read the file contents and parse the instructions to operate my program. I'm new to C/C++ so i'm not sure what's the best way to solve this.</p>
  
  <p>How can i read one line and know what kind of instruction is?</p>
  
  <p>I would like to know some ideas</p>
  
  <p>(My hashtable code is here <a href="http://pastebin.com/yVEeqvzG" rel="nofollow">http://pastebin.com/yVEeqvzG</a> )</p>