Node.js
Node.js
Load utf-8 Text File into a StringBuilder
Demonstrates how to load a utf-8 text file into a StringBuilder object instance.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
var sb = new chilkat.StringBuilder();
success = sb.LoadFile("someFileContainingUtf8.txt","utf-8");
if (success !== true) {
console.log("Failed.");
}
else {
console.log("Success.");
}
}
chilkatExample();