EC-Council
312-92 · Question #30
What coould a developer using Apple's Cocoa accomplish by using the following script? NSURL *urlContents = [myURL resourceDataUsingCache:YES]; if ([urlContents…
The correct answer is A. Download files. EC-Council 312-92 Exam
Mobile Forensics
Question
What coould a developer using Apple's Cocoa accomplish by using the following script? NSURL *urlContents = [myURL resourceDataUsingCache:YES]; if ([urlContents writeToFile:[@"~/Documents/applewebsite.html" stringByExpandingTildeInPath] atomically:YES]) { // It was successful, do stuff here } else { // There was a problem writing the file }
Options
- ADownload files
- BWrite code to the applewebsite.html page
How the community answered
(43 responses)- A72% (31)
- B28% (12)
Explanation
EC-Council 312-92 Exam
Topics
#Apple Cocoa#NSURL#file download#macOS development
Community Discussion
No community discussion yet for this question.