Contents

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) throws

See Also

Creating a String from a File or URL