13 File Handling
This chapter will cover the basics of reading and writing local files with Swift.
Files and folders are core elements of operating systems. Files contain persistent data stored on the disk, while folders are used to organize files. In many apps, you are going to need file-access features. You might need to create folders, read existing files, create and fill new files, and so on. Naturally, Swift empowers programmers with the necessary tools for such operations. In this chapter, you are going to discover these tools and learn how to conduct folder/file operations.
As a heads-up, you should be aware of the sandboxing features of Apple operating systems, which are fundamental security features. In iOS, your app will get a unique ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access