title: How to properly create an array of arrays by reading in data from a file
body: <p>So far I have:</p>
  
  <pre><code>//read in data from CSV file and separate it into 'row' strings:
  // where dataString is simply a CSV file with lines of CSV data
  // 31 lines with 9 integers in each line
  NSArray *containerArray = [dataString componentsSeparatedByString:@"\n"]; 
  NSArray *rowTemp; //local variable just for my sake
  NSMutableArray *tableArray;//mutable array to hold the row arrays
  
  //For each index of containerArray:
  //take the string object (string of CSV data) and then,
  //create an array of strings to be added into the final tableArray
  
      for (int i = 0; i &lt; [containerArray count]; i++) {
      rowTemp = [[containerArray objectAtIndex:i] componentsSeparatedByString:@","];
      [tableArray addObject:rowTemp];        
      }
  </code></pre>
  
  <p>Then when I try the following, it returns: (null)</p>
  
  <pre><code>NSLog(@"Row 6, cell 1 is %@", [[tableArray objectAtIndex:5] objectAtIndex:0]);
  </code></pre>
  
  <p>Any ideas? is there a better way? </p>
  
  <p>FYI this data is static and very unlikely to change. Any way to create and populate a static array rather than using a mutable array, would be much appreciated.</p>
  
  <p>Thanks in advance.</p>