Sample code for 30+ languages & platforms
B4X

Load utf-8 Text File into a StringBuilder

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

Chilkat B4X Downloads

B4X
Dim success As Boolean = False

Dim sb As ChilkatStringBuilder
sb.Initialize

success = sb.LoadFile("someFileContainingUtf8.txt", "utf-8")
If success <> True Then
    Log("Failed.")
Else
    Log("Success.")
End If