Contents

init(contentsOf:usedEncoding:)

Produces a string created by reading data from a given URL and returns by reference the encoding used to interpret the data.

Declaration

init(contentsOf url: URL, usedEncoding: inout String.Encoding) throws

See Also

Creating a String from a File or URL