Sample code for 30+ languages & platforms
Lianja

Load utf-8 Text File into a StringBuilder

Demonstrates how to load a utf-8 text file into a StringBuilder object instance.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

loSb = createobject("CkStringBuilder")

llSuccess = loSb.LoadFile("someFileContainingUtf8.txt","utf-8")
if (llSuccess <> .T.) then
    ? "Failed."
else
    ? "Success."
endif



release loSb