title: How to print a single array element in Objective-C?
body: <p>How to print a array element at particular index in Objective-C? My code looks like this:</p>
  
  <pre><code>NSString *String=[NSString StringWithContentsOFFile:@"/User/Home/myFile.doc"];
  NSString *separator = @"\n";
  NSArray *array = [String componetntsSeparatedByString:separator];
  NSLog(@"%@",array);
  </code></pre>
  
  <p>I'm able to print the full contents of an array at once, but I want to assign the element at each index into a string, like...</p>
  
  <pre><code>str1=array[0];
  str2=array[1];
  str3=array[0];...this continues
  </code></pre>
  
  <p>How do I do this?</p>