title: Write array to the plist file of my project directory
body: <p>Here is the code I tried to write some string values to my database.plist file in the same folder of my project. Therefore I can't use NSDocumentDirectory. This code didn't give me any error. But String value doesn't save in my plist file array.</p>
  
  <pre><code>  -(void)dataFetching
  {
  NSMutableDictionary *categoryList = [[NSMutableDictionary alloc] initWithContentsOfFile:@"database.plist"];
  NSMutableArray *array =(NSMutableArray *) [categoryList valueForKey:@"Saved"];
  
  NSString *testStr = @"test String";
  
  int lastItemIndex = [array count];
  [array insertObject:testStr atIndex:lastItemIndex];
  
  [categoryList writeToFile:@"database.plist" atomically:YES];
  
  }
  </code></pre>