Returns a data object initialized by reading into it the data from the file specified by a given path.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
The absolute path of the file from which to read data.
A mask that specifies options for reading the data. Constant components are described in
If an error occurs, upon return contains an
NSErrorobject that describes the problem.
A data object initialized by reading into it the data from the file specified by
path. The returned object might be different than the original receiver.