Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing Unicode Character to a Fle

Status
Not open for further replies.

DavidArchibald

IS-IT--Management
Oct 29, 2000
20
NZ
Hi There

I am creating an application where a list of variables is written to a file separated by the following unicode value : 
 
 Line Separator

How can I write this to the file so the character appears??

I'd appreciate any suggestions - I have a feeling that it's most likely straight-forward but I haven't done it before.

Thanks
 
How about this?

Option Explicit

Private Sub Form_Load()
Dim strUnicode As String
Dim intFile As Integer

intFile = FreeFile

Open "c:\temp\test.txt" For Output As #intFile

strUnicode = "ABC"

strUnicode = StrConv(strUnicode, vbUnicode)

Print #intFile, strUnicode

Close intFile
End Sub Snaggs
tribesaddict@swbell.net
Enter any 11-digit prime number to continue...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top