Write contents of array to a text file

后端 未结 3 989
执笔经年
执笔经年 2021-01-23 18:04

I want to write the contents of an array to a text file in my iPhone application. I can load the array from the text file but i want to allow deleting of content through the arr

3条回答
  •  一整个雨季
    2021-01-23 18:50

    There is method in NSArray to write the array into a file.

    - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flag
    

    Please check the Apple documentation

提交回复
热议问题