Uncode strings in File

  • Thread starter Thread starter TW
  • Start date Start date
T

TW

Hi, We have a VB .NET CF app which reads strings from a skin file
and displays on the screen. Currently the strings are stored in the file
as ASCII. How do we store them as Unicode. This is so we can store
strings in foreign languages later.

Thanks
 
Hi,

In C# you can do this, it is the same in VB :

FileStream myFileStream = new FileStream(filePath, FileMode.Open,
System.IO.FileAccess.Write, System.IO.FileShare.Write);

StreamWriter myWriter = new StreamWriter(myFileStream,
System.Text.Encoding.Unicode);

myWriter.Write("myText");


BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



TW a écrit :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top