init(contentsOfFile:)
Initializes a data object with the content of the file at a given path.
Declaration
init?(contentsOfFile path: String)Parameters
- path:
The absolute path of the file from which to read data.
Return Value
A data object initialized by reading into it the data from the file specified by path.
Discussion
This method is equivalent to init(contentsOfFile:options:) with no options.