Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Write Unicode File
VB.NET Example Source Code to write a string as Unicode to a file. ' Write the string as Unicode (2 bytes per character)
' This also writes the Unicode preamble at the beginning of the file.
Dim appendMode As Boolean = False ' This overwrites the entire file.
Dim sw As New StreamWriter("out_unicode.txt", appendMode, System.Text.Encoding.Unicode)
sw.Write(TextBox1.Text)
sw.Close()
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.