title: Reading a ";" delimited file into a character array structure
body: <p>I am trying to read a set of values from a text file into an array of structures of arrays. The entries are each separated by a '\n', and each entry consists of 3 values, separated by a ';'.</p>
  
  <p>The problem is that after correctly reading the first line of file data the program reads the first value from the second line, then seems to fail to read the remaining values. Can you point out the error in my syntax or logic?</p>
  
  <p>The test data appears below.</p>
  
  <pre><code>CS162;Finish Lab 2;9/26/2009
  CS201;Take Quiz 1;9/28/2009
  </code></pre>
  
  <p>After reading in the test data my program's output is below.</p>
  
  <pre><code>Your tasks are:
  Finish Lab 2 for CS162 is due 9/26/2009
  CS201
   for  is due
  </code></pre>
  
  <p>The loops that read the file into the array and outputs the array contents are below. My complete code will be at the end of the question.</p>
  
  <pre><code>for ( ; InputFile.peek() != EOF; ListSize++ )
  {
        InputFile.get(TaskList[ListSize].Course, BUFFERSIZE, ';');
        InputFile.ignore(BUFFERSIZE, ';');
        InputFile.get(TaskList[ListSize].Assignment, BUFFERSIZE, ';');
        InputFile.ignore(BUFFERSIZE, ';');
        InputFile.get(TaskList[ListSize].DueDate, BUFFERSIZE, ';');
        InputFile.ignore(BUFFERSIZE, '\n');
  }
  
  cout &lt;&lt; "Your tasks are:" &lt;&lt; endl;
  for ( int Iteration = 0; Iteration &lt;= ListSize; Iteration++ )
  {
      cout &lt;&lt; TaskList[Iteration].Assignment &lt;&lt; " for " &lt;&lt; TaskList[Iteration].Course &lt;&lt; " is due " &lt;&lt; TaskList[Iteration].DueDate &lt;&lt; endl;
  }
  </code></pre>
  
  <p>Full disclosure, this is for a computer science class. This is why I am not asking for complete code solutions, just help with logic or syntax errors. If I am doing this in completely the wrong way, please point me to documentation to help me. But this does put limitations on my code. The program must use character arrays, not strings.</p>