X
xuxu
If you use StreamWrite Write or WriteLine it causes Session to End!
e.g.
FileStream fs = File.Open(fileName,FileMode.Append,FileAccess.Write);
StreamWriter sw = new StreamWriter(fs);
sw.Write("test");
sw.Close();
fs.Close();
Now all session information is lost!!
Is there a work around for this ?
e.g.
FileStream fs = File.Open(fileName,FileMode.Append,FileAccess.Write);
StreamWriter sw = new StreamWriter(fs);
sw.Write("test");
sw.Close();
fs.Close();
Now all session information is lost!!
Is there a work around for this ?