title: text wrap when creating .csv file with NSMutableArray
body: <p>I am creating  .csv file with following code</p>
  
  <p>-(NSString *)dataFilePath {</p>
  
  <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
  documentsDirectory = [paths objectAtIndex:0];
  return [documentsDirectory stringByAppendingPathComponent:@"myfile.csv"];
  </code></pre>
  
  <p>}<br>
  -(void)createfile{</p>
  
  <pre><code>if (![[NSFileManager defaultManager] fileExistsAtPath:[self dataFilePath]]) {
      [[NSFileManager defaultManager] createFileAtPath: [self dataFilePath] contents:nil attributes:nil];
   }
   for (int i=0; i&lt;[arr count]; i++) {
        NSString *_amnt = [[self.reversedArr objectAtIndex:i]  valueForKey:@"amount"];
       writeString = [NSString stringWithFormat:@"%@,%@,%@", [[arr objectAtIndex:i] valueForKey:@"date"], [[arr objectAtIndex:i] valueForKey:@"particular", [NSString stringWithFormat:@"%@\n", _amnt]];
  
  
      }
      NSFileHandle *handle;
      handle = [NSFileHandle fileHandleForWritingAtPath: [self dataFilePath] ];
      //say to handle where's the file fo write
      [handle truncateFileAtOffset:[handle seekToEndOfFile]];
      //position handle cursor to the end of file
      [handle writeData:[writeString dataUsingEncoding:NSUTF8StringEncoding]];
  </code></pre>
  
  <p>}</p>
  
  <p>I am successful to create csv file but I am having a problem when I am opening the .csv file in excel sheet then any row who having more characters , extending its column width according to characters but I need to wrap text with fixed column width ,  row height should be extend. 
  So what should I do for this task. can any one give suggestion .</p>