Creates a data object by reading every byte from the file at a given path.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- 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 error object that describes the problem.
This method returns
nil if the data object could not be created. In this case,
error will contain an
NSError indicating the problem.