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