JavaScript
JavaScript
Load utf-8 Text File into a StringBuilder
Demonstrates how to load a utf-8 text file into a StringBuilder object instance.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat
v11.4.0 or greater.
var success = false;
var sb = new CkStringBuilder();
success = sb.LoadFile("someFileContainingUtf8.txt","utf-8");
if (success !== true) {
console.log("Failed.");
}
else {
console.log("Success.");
}