The text file operation, find text file, search the sandbox’s Documents folder for text file names that match a search term. If the operation found any results, the app put them in an array variable. At this point, you can do what ever you like with the array. For example, you can dump its elements in the console or a table […]
The delete text file operation pretty much deletes an existing text file in the app’s Documents folder. Furthermore, the app user is usually the one who initiates this operation by tapping a button in a table view cell. Code presented on this page assumes you are using Xcode 7.0 and Swift version 2.0. So if you are using an […]
The text file operation, update file pretty much update an existing text file in the sandbox’s Documents folder. Further more, the app user is usually the one who initiate this operation by tapping a button on a view. Code presented on this page assume you are using Xcode 7.0 and Swift version 2.0. So if you […]
The read text file operation basically fetch a text file’s data from the Documents folder, and store it in a string variable. Let us call that variable, fetchedFileData. At this point, you can do what ever you want with the fetchedFileData variable; for example, you can dump it in the console or in a textView. Code presented on this […]