title: How to store a (download) file inside iPhone device?
body: <p>Currently i am working in simple Drop box application in iPhone, Using Dropbox_SDK to develop this app, i have to store a file inside drop box path folder and its works good, then i tried to retrieve (download) that file from dropbox and stored inside a iPhone device, but the device path, i didn't know that, how to set the device path? please help me</p>
  
  <p>Thanks in Advance</p>
  
  <p>I tried this for your reference:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      NSString *DropBoxpath = @"/Public/sam.txt";
      NSString *devicepath = [[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"];
      [[self restClient] loadFile:DropBoxpath destDir:devicepath];
  }
  - (void)restClient:(DBRestClient*)client loadedFile:(NSString*)localPath
  {
      NSLog(@"File loaded into path: %@", localPath);
  }
  
  - (void)restClient:(DBRestClient*)client loadFileFailedWithError:(NSError*)error {
      NSLog(@"There was an error loading the file - %@", error);
  }
  </code></pre>