摘要:
Dictionary<string, Dictionary<string, string>> readIni(string filePath) { int count = 0;//计算节点数 int j = 0;//节点数值下标 string[] lines = System.IO.File.ReadAllLines(filePath, Encoding.Default); foreach (string item in lines) { Console.WriteLine(item); if (item.StartsWith("[") && 阅读全文
摘要:
class Program { static void Main(string[] args) { int count = 0;//计算节点数 int j = 0;//节点数值下标 string[] lines = System.IO.File.ReadAllLines(@"d:xxx.ini", Encoding.Default); foreach (string item in lines) { Console.WriteLine(item); if (item.StartsWith("[") && item.EndsWith(&qu 阅读全文
摘要:
//判断表是否存在 public static bool IsExist(string tablename, OracleConnection strconn) { String tableNameStr = "select count(*) from user_tables where table_name ='" + tablename.ToUpper() + "'"; OracleCommand cmd = new OracleCommand(tableNameStr, strconn); int result =Convert.T 阅读全文