init(contentsOfFile:encoding:)
Produces a string created by reading data from the file at a given path interpreted using a given encoding.
Declaration
init(contentsOfFile path: String, encoding enc: String.Encoding) throwsProduces a string created by reading data from the file at a given path interpreted using a given encoding.
init(contentsOfFile path: String, encoding enc: String.Encoding) throws