摘要:
public static DataTable ReadDataTable(string filePath) { DataTable dt = new DataTable(); try { System.Text.Encoding encoding = Encoding.Default;//GetT 阅读全文
摘要:
public static DataTable ReadDataTable(string filePath) { DataTable dt = new DataTable(); StreamReader sR = null; try { if (File.Exists(filePath)) { sR 阅读全文
摘要:
Dictionary<int, double> keyValuePairs = new Dictionary<int, double>(); keyValuePairs.Add(1, 10); keyValuePairs.Add(3, 33); keyValuePairs.Add(2, 13); / 阅读全文
摘要:
// 使用DirectoryInfo类 DirectoryInfo directory = new DirectoryInfo(path); // 获取目录下的所有文件 FileInfo[] files = directory.GetFiles(); 阅读全文