Creates and returns a mutable array containing the contents of the file specified by the given path.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The path to a file containing a string representation of a mutable array produced by the
To File: atomically:
A mutable array containing the contents of the file specified
nil if the file can’t be opened or if the contents of the file can’t be parsed into a mutable array.
The mutable 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.