title: using NSSearchPathForDirectoriesInDomains properly
body: <p>I am fairly new to archiving an object I have. I have a dictionary that I want to archive.. so first I got the path by doing:</p>
  
  <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
          dictionaryPath = [paths objectAtIndex:0];
  </code></pre>
  
  <p>so is the next step to append this dictionaryPath with a .txt? Or should I create something first at this directory? What is then the data type?</p>
  
  <p>I want to be able to use it for:</p>
  
  <pre><code>[NSKeyedArchiver archiveRootObject:locationDic toFile:dictionaryPath];
  </code></pre>
  
  <p>Where dictionaryPath is the path to store this NSDictionary</p>