Swift
Swift
Load utf-8 Text File into a StringBuilder
Demonstrates how to load a utf-8 text file into a StringBuilder object instance.Chilkat Swift Downloads
func chilkatTest() {
var success: Bool = false
let sb = CkoStringBuilder()!
success = sb.loadFile(path: "someFileContainingUtf8.txt", charset: "utf-8")
if success != true {
print("Failed.")
}
else {
print("Success.")
}
}