C++
C++
Load utf-8 Text File into a StringBuilder
Demonstrates how to load a utf-8 text file into a StringBuilder object instance.Chilkat C++ Downloads
#include <CkStringBuilder.h>
void ChilkatSample(void)
{
bool success = false;
CkStringBuilder sb;
success = sb.LoadFile("someFileContainingUtf8.txt","utf-8");
if (success != true) {
std::cout << "Failed." << "\r\n";
}
else {
std::cout << "Success." << "\r\n";
}
}