URL
extension URL
-
Convenience function for Data(contentsOf: URL)
Throws
An error in the Cocoa domain, if
urlcannot be read.Declaration
Swift
public func readFileContents() throws -> DataReturn Value
Data with contents of the (local) File