Code Snippet: Read File
From Coder Merlin
Revision as of 13:57, 6 December 2018 by Chukwuemeka-tinashe (talk | contribs)
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Read the contents of a file into a string[edit]
import Foundation
let contents = try! String(contentsOfFile: "hello.txt")