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 […]
Category: Swift App Development
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 […]
Today you will add code in the SaveFileViewController.swift file to implement the write text file operation in the SaveFileViewController class. The app user is the one who will initiate this text file operation by entering a note in the Save File view’s textView and tapping the Save button. The User Interaction Table Here is a snap shot […]