110,528
社区成员
发帖
与我相关
我的任务
分享
string path=@"C:\Documents and Settings\Administrator\桌面\2.doc";
FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write);
StreamWriter sw = new StreamWriter(fs, System.Text.Encoding.GetEncoding("gb2312"));
string html = @"C:\Documents and Settings\Administrator\桌面\1.html";
sw.WriteLine(File.ReadAllText(html));
sw.Close();
到excel 也可以这样