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 :
 
Back
Top