If you click the '+' icon, you'll get a dialog and you can search for the AVFoundation Framework to add it. This method is quite similar to the read method. The second will be the directory, and the third will be the file name. The first will be content of the text file. The save method will take three arguments. The last method that we need to implement is the save method.
AVAudioSession - An intermediary object that communicates to the system how you intend to use audio in your app.