NSArray *cachePath=NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NSUserDomainMask, YES);
NSString *cacheDir = [cachePath objectAtIndex:0];
NSString *filePath = [cacheDir stringByAppendingPathComponent:@"version.plist"];
NSFileManager *fileManager = [NSFileManagerdefaultManager];
// Copy the file from the resourcepath to the documentpath
if (![fileManager fileExistsAtPath:filePath]) {
NSString *databasePathFromApp = [[[NSBundlemainBundle] resourcePath]stringByAppendingPathComponent:@"version.plist"];
NSError *error;
[fileManagercopyItemAtPath:databasePathFromApp toPath:filePath error:&error];
}
NSDictionary *dic=[NSMutableDictionarydictionaryWithContentsOfFile:filePath];
NSString *databasePathFromApp2 = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"html5.html"];
NSURL *url = [NSURL fileURLWithPath:databasePathFromApp2];