title: Why is it that every other object in my array is blank?
body: <p>I read a CSV file into an array using:</p>
  
  <pre><code>NSString *theWholeTable = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"example" ofType:@"csv"]
                                                      encoding:NSUTF8StringEncoding 
                                                         error:NULL];
  NSArray *tableRows = [theWholeTable componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]];
  </code></pre>
  
  <p>And every second object in the array is empty, any idea why?</p>
  
  <p>the CSV file data looks like this:
  10,156,326,614,1261,1890,3639,5800,10253,20914
  20,107,224,422,867,1299,2501,3986,7047,14374</p>
  
  <p>with 10 and 20 being the start of each new line.</p>
  
  <p>thanks in advance.</p>
  
  <p><em><strong>Edit</em></strong>
  I tried using the following code instead:</p>
  
  <pre><code>NSArray *tableRows = [theWholeTable componentsSeparatedByString:@"\n"];
  </code></pre>
  
  <p>And that worked the way I wanted it too.</p>
  
  <p>Although I am still unsure why the newlineCharacterSet created empty objects...</p>