13.5 Summary
In this chapter, you have learned how to deal with files and folders using Swift. It’s possible to read and write either text or binary files. Content can be read or written all at once or in manageable chunks. For common file formats, such as JSON or a property list, you can make use of libraries and let them do the heavy lifting of encoding/decoding data.
For file system tasks, such as creating folders, duplicating files, or accessing properties, Swift’s FileManager class acts as a central point. Using the intuitive functions in that class, any operation can be handled easily.
The next chapter will address a completely different topic. By learning about concurrency in Swift, you will be able to develop high-performance multithreaded ...
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