Writes the bytes in the receiver to the file specified by a given path.
- iOS 2.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
The location to which to write the receiver's bytes.
A mask that specifies options for writing the data. Constant components are described in
If there is an error writing out the data, upon return contains an
NSErrorobject that describes the problem.