Hello guys,
i am trying to read the contents of a HTML file and store them into a NSData.
But after it runs, it prints out only null !
what is wrong here ?
i am trying to read the contents of a HTML file and store them into a NSData.
Code:
NSData *htmlData = [NSData dataWithContentsOfFile:@"index.html"];
NSLog(@"%@", htmlData);
But after it runs, it prints out only null !
what is wrong here ?