Initializes the receiver, a newly allocated NSString object, by reading data from the file named by path.
UIKit for Mac 13.0–13.0Deprecated
Initializes the receiver, a newly allocated NSString object, by reading data from the file named by path. If the contents begin with a byte-order mark (U+FEFF or U+FFFE), interprets the contents as UTF-16 code units; otherwise interprets the contents as data in the default C string encoding. Returns an initialized object, which might be different from the original receiver, or nil if the file can’t be opened.
Returns an NSString object initialized by reading data from the file at a given path and returns by reference the encoding used to interpret the characters.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.