Xcode 7.1 beta: Content Of File Error
I had just finished the final touches to my swift app. But after upgrading to Beta 7 its giving me errors for the 'ContentOfFile' String. can anyone help me understand how I can go about fixing this please? here's what i've got ATM. //Reads the Text File if var path = NSBundle.mainBundle().pathForResource("Chapters", ofType: "txt"){ //Reads the Text File into one Huge String var data = String(contentsOfFile:path, encoding: NSUTF8StringEncoding, error: nil) //sets String content of the Text File as an Array. With each string start at \n (new line) if var content = (data){ //from the mass string