There is virtually no solid application that doesn’t need some level of file access and/or web access nowadays.
In this chapter, we’ll be looking at what Swift offers us and how we can easily play with files, read/write to them, retrieve useful information from our user’s system, and even take it one step further and interact with the WWW.
12.1 Check if file exists
Problem
I want to check if a specific file exists.