     private class func readWithName(fileName: String, directory: String, type: String?) -> AnyObject {
         if directory == "bundle" {//资源包文件
             let path = NSBundle.mainBundle().pathForResource(fileName, ofType: type)
-            let string = try? String(contentsOfFile: path!, encoding: NSUTF8StringEncoding)
-            return string!.dataUsingEncoding(NSUTF8StringEncoding)!
+            var string = String()
+            do {
+                string = try String(contentsOfFile: path!, encoding: NSUTF8StringEncoding)
+            } catch {
+                if DEBUG_MODE {
+                    print("[ PFKit ][ ERROR ] Read file failed.")
+                }
+            }
+            return string.dataUsingEncoding(NSUTF8StringEncoding)!
         } else {//沙盒文件
             let paths = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true)
             let path = NSURL(fileURLWithPath: paths[0]).URLByAppendingPathComponent(fileName)

                    print("[ PFKit ][ DEBUG ] File removed.")
                }
            } catch {
                print("[ PFKit ][ ERROR ] File remove failed.")
            }
        } else if DEBUG_MODE {
            print("[ PFKit ][ ERROR ] File does not exist.")

     - Returns: 文件中的数据
     */
    public class func readDictionaryWithName(fileName: String) -> Dictionary<String, AnyObject> {
        let string = readWithName(fileName, directory: "document", type: nil) as! String
        let dictionary = Dictionary<String, AnyObject>()
        if string != "" {
            var dictionary = NSDictionary(contentsOfFile: string) as! Dictionary<String, AnyObject>
            dictionary.removeValueForKey("")
            return dictionary
        } else {
            if DEBUG_MODE {
                print("[ PFKit ][ DEBUG ] Dictionary file has not parameter.")
                print("[ PFKit ][ ERROR ] Read dictionary file failed.")
            }
            return dictionary
        }
    }
    
    /**
