 <p>You can do this with </p> <pre><code>+ (NSArray&lt;ObjectType&gt; * nullable)arrayWithContentsOfFile:(NSString * nonnull)aPath </code></pre> <p>and </p> <pre><code>- (BOOL)writeToFile:(NSString * nonnull)path atomically:(BOOL)flag </code></pre>