I am making a func that edits a text file in the Users/johnDoe Dir.
let filename = \"random.txt\" let filePath = \"/Users/johnDoe\" let replacementText = \"
Maybe
FileManager.homeDirectoryForCurrentUser: URL
It's listed as "beta" for 10.12, though.