Category: Swift App Development

Text File Workshop: Read Text File

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 […]

Text File Workshop: Write Text File

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 […]