NSString object initialized by reading data from the file at a given path using a given encoding.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
A path to a file.
The encoding of the file at
path. For possible values, see
If an error occurs, upon return contains an
NSErrorobject that describes the problem. If you are not interested in possible errors, pass in
NSString object initialized by reading data from the file named by
path using the encoding,
enc. The returned object may be different from the original receiver. If the file can’t be opened or there is an encoding error, returns