Q on filestream and streamreader unicode
Posted
by habbo95
on Stack Overflow
See other posts from Stack Overflow
or by habbo95
Published on 2010-05-20T16:05:16Z
Indexed on
2010/05/20
17:10 UTC
Read the original article
Hit count: 225
HI all of u,, I have big problem until now no body helped me. firstly I want to open XXX.vmg (this extension come from Nokia PC Suite) file and read it then write it in richtextbox. I wrote the code there is no error and also there is no reault in the richtextbox
here is my code
FileStream file = new FileStream("c:\\XXX.vmg", FileMode.OpenOrCreate, FileAccess.Read);
StreamWriter sw = new StreamWriter(fileW);
StreamReader sr = new StreamReader(file);
string s1 = sr.ReadToEnd();
string[] words = s1.Split(' ');
for (int i=0; i<words.length; i++)
richTextBox1.Text +=Envirment.NewLine + words[i];
The output at richtextbox just blank line
© Stack Overflow or respective owner