Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file:///private/var/mobile/Containers/Data/Application/C5454580-2BEB-4515-9BDE-FED85FF54F76/Documents/Inbox/ShareStrength-11.bps
- let sourceFile = NSDictionary(contentsOfFile: URLString)
- var error: NSError?
- let content = NSString(contentsOfFile: URLString, encoding:NSUTF8StringEncoding, error: &error)
- if content != nil
- {
- println("content: (content)")
- }
- else
- {
- println("error: (error)")
- }
- error: Optional(Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x17eceeb0 {NSFilePath=file:///private/var/mobile/Containers/Data/Application/571DB0FF-6C5A-4BEB-9FA8-6E4DFE10E850/Documents/Inbox/ShareStrength-13.bps, NSUnderlyingError=0x17ee9810 "The operation couldn’t be completed. No such file or directory"})
- let URLString: String = url.absoluteString!
- let URLString: String = url.path!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement