Q on filestream and streamreader unicode
- by habbo95
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