title: fgets() won't read content from file to 2d array
body: <p>The <code>fgets</code>statement is not gathering anything from the <code>calendarLog</code> file stream into the <code>events[][]</code> array. My <code>calendarLog.txt</code> has five lines in it:</p>
  
  <pre><code>1/1/1 fds
  2/2/2 dsa
  3/3/3 sal
  4/4/4 444
  5/5/5 555
  </code></pre>
  
  <p>The <code>printf</code> statement is instructed to output one <code>!</code> as well as the <code>events[counter]</code>, however, my output statement is only the question marks, <code>!!!!!</code>, five of them (if I add more lines to calendarLog, it prints more exclamation points). Why does </p>
  
  <pre><code>while(fgets(events[counter++], EVENT_DESCR_SIZE, calendarLog) != NULL)
  </code></pre>
  
  <p>remain true and yet <code>printf("!%s", events[counter])</code> not print the <code>events[counter]</code>?
  All help appreciated!</p>
  
  <pre><code>FILE *calendarLog;
  char    events[MAX_EVENTS][EVENT_DESCR_SIZE], 
          *newLinePos;
  int counter = 0,
      index1,
      index2;    
  
  for (index1 = 0; index1 &lt; MAX_EVENTS; index1++)
      for (index2 = 0; index2 &lt; EVENT_DESCR_SIZE; index2++)
          events[index1][index2] = 0; 
      if ((calendarLog = fopen("calendarLog.txt", "r")) == NULL)
      {
          calendarLog = (fopen("calendarLog.txt", "w"));
          fprintf(calendarLog, "s\n", eventObject);
      }
      else    
      {
          while  (fgets(events[counter++], EVENT_DESCR_SIZE, calendarLog) != NULL) 
          {
              if ((newLinePos = strchr(events[counter], '\n')) != NULL) //takes the '\n' out
                  *newLinePos = '\0'; //of the events[counter]
              printf("!%s", events[counter]);
          }
  </code></pre>