局域网内读取文件
摘要:
static void Main(string[] args) { FileStream fs = new FileStream(@"\\1.2.3.4\XXX\Debug\log\log.txt", FileMode.Open, FileAccess.Read); StreamReader reader = new StreamReader(fs, Encoding.GetEncoding("GBK")); String log=reader.ReadToEnd(); reader.Clos... 阅读全文
posted @ 2012-08-07 11:49 雨渐渐 阅读(211) 评论(0) 推荐(0) 编辑