Can I add a couple of text files in Xcode for write and read
Go to File → New File or type ⌘+n. Under iOS or OS X select Other and click Next. You will be asked to give a name to that file. Call it whatever.txt and you are done.