write(toFile:atomically:encoding:)

Writes the contents of the String to a file at a given path using a given encoding.

Declaration

func write<T>(toFile path: T, atomically useAuxiliaryFile: Bool, encoding enc: String.Encoding) throws where T : StringProtocol