title: Save NSArray variable as CSV file with objective-C
body: <p>Please may i know how to save a NSArray variable as CSV file using objective-C and Xcode. </p>
  
  <p>I want to save it in: \tmp file</p>
  
  <pre><code>NSArray *TArray;
  NSMutableArray *Xdata;
  NSMutableArray *Ydata;
  
  for(int i = 1; i &lt; 10; i++)
  {
   [Xdata addObject:[NSNumber numberWithFloat:(i/3.14)]];
  
   [Ydata addObject:[NSNumber numberWithFloat:(i*3.14)]];
  
  }
  
  TArray = [[NSArray alloc] initWithObjects:Xdata, Ydata, nil];
  </code></pre>
  
  <p>So how can i save "TArray" as CSV file ?</p>
  
  <p>Thanks :)</p>