Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Can someone help a newbie please (Unicode text documents in VB.Net)
 

Can someone help a newbie please (Unicode text documents in VB.Net)

Hello All

First, I hope I'm in the right place, and if I am not I apologize.

I am a newbie to Visual Basic.Net, and to programming in general.
I had a little run with C programming years ago (DOS Days), but
thats where it ends.

So, with that said, I have set the mind set for this question. (I'm Green)  ;)

I have been working through 3 "beginners" books for VB.Net, and the program
I want to build is pretty much done, except for one thing.

The program I have built is your basic text editor, with "Open|Edit|Save" capabilities.
The problem I'm having is finding information on changing the code in the program
to work for Unicode files only.

Can anyone tell me what code I have to change to get the thing to write a Unicode
file, instead of a plan text file?

I have searched the web, asked in other forums, looked through books, but its starting
to look like one of those "hidden" programmer secrets....

Any help would be appreciated,
Patrick
MigrationUser 1  Sunday, May 11, 2003 2:33 AM
You can do something like this:
Dim enc As System.Text.Encoding
        Dim sw As New StreamWriter("c:\temp\enc.txt", True, enc.Unicode)
        sw.Write("hello")
        sw.Flush()
        sw.Close()

This post is governed by the Conditions of Use and is provided "AS IS" with
no warranties, and confers no rights. You assume all risk for your use. ©
2001 Microsoft Corporation. All rights reserved.
<http://www.microsoft.com/info/terms.htm>
MigrationUser 1  Friday, May 16, 2003 3:39 PM

I need help w/my daughter's ipod.nano

I have tried to download music to ipod, and it states music is in, but when I remove connection, it states it has no music.

jcdotcom  Monday, September 24, 2007 3:55 AM

You can use google to search for other answers

Custom Search

More Threads

• user control at design time: a big pain...
• Max Size of a Form
• Component with DataTables. How to impliment?
• Hosting Windows Form Desginers
• Properties help
• Access Button / Form from Inherited Control
• ListView with widgets
• delegate property in property designer?
• How to change disabled textbox fonts color ?
• Office-style buttons