File.Delete(url);
StreamWriter sw = new StreamWriter(url, true, Encoding.GetEncoding("utf-8"));
sw.Write(vhtml);为什么这样写,无法写进内容了?File.Create(url);
StreamWriter sw = new StreamWriter(url, true, Encoding.GetEncoding("utf-8"));
sw.Write(vhtml);
为什么这样写,无法写进内容了?
StreamWriter sw = new StreamWriter(url, true, Encoding.GetEncoding("utf-8"));
sw.Write(vhtml);为什么这样写,无法写进内容了?File.Create(url);
StreamWriter sw = new StreamWriter(url, true, Encoding.GetEncoding("utf-8"));
sw.Write(vhtml);
为什么这样写,无法写进内容了?
如果这样的话..应该是你忘记加上
sw.Flush 这个语句了..加在后面..OK...谢谢给分。.
http://msdn2.microsoft.com/zh-cn/library/6ka1wd3w(VS.80).aspx