Xbase++
Xbase++
Load utf-8 Text File into a StringBuilder
Demonstrates how to load a utf-8 text file into a StringBuilder object instance.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oSb
nSuccess := 0
oSb := CreateObject("Chilkat.StringBuilder")
nSuccess := oSb:LoadFile("someFileContainingUtf8.txt", "utf-8")
IF (nSuccess != 1)
? "Failed."
ELSE
? "Success."
ENDIF
oSb:destroy()