Creates and returns an array containing the contents of the file specified by a given path.
- iOS 2.0–11.0Deprecated
- macOS 10.0–10.13Deprecated
- tvOS 9.0–11.0Deprecated
- watchOS 2.0–4.0Deprecated
The path to a file containing a string representation of an array produced by the
To File: atomically:
An array containing the contents of the file specified by
nil if the file can’t be opened or if the contents of the file can’t be parsed into an array.
The array representation in the file identified by
a must contain only property list objects (
NSDictionary objects). For more details, see Property List Programming Guide. The objects contained by this array are immutable, even if the array is mutable.