摘要: //Console.ReadKey(); ceshi("3.ini", "用户名"); ceshi("3.ini", "IP地址"); ceshi("3.ini", "端口"); // 从ini格式的文件(每... 阅读全文
posted @ 2015-09-22 19:37 尘梦 阅读(134) 评论(0) 推荐(0) 编辑
摘要: string[] lines = System.IO.File.ReadAllLines(@"C:\Users\Administrator\Desktop\2.txt",Encoding.Default); foreach (string i in... 阅读全文
posted @ 2015-09-22 11:32 尘梦 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: string email = Console.ReadLine(); int atIndex = email.IndexOf('@'); string userName = email.Substring(0, atIndex); ... 阅读全文
posted @ 2015-09-22 10:59 尘梦 阅读(165) 评论(0) 推荐(0) 编辑
摘要: string[] arr = Console.ReadLine().Split(' '); string result = string.Empty; for (int i = arr.Count() - 1; i >= 0; i--) ... 阅读全文
posted @ 2015-09-22 10:55 尘梦 阅读(222) 评论(0) 推荐(0) 编辑