123456789101112131415161718192021222324252627 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.IO;
- namespace WeiXin.Library.Utility
- {
- class FileUtility
- {
-
-
-
-
-
- public static string Read(string path)
- {
- string result = null;
- using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- StreamReader reader = new StreamReader(fs, Encoding.UTF8);
- result = reader.ReadToEnd();
- }
- return result;
- }
- }
- }
|