TextBuffer textBuffer; ; textBuffer = new TextBuffer(); textBuffer.setText("Строка"); textBuffer.toFile(@"C:\utf8.txt", FileEncoding::UTF8);