2017年9月30日

C# StreamReader

摘要: using (StreamReader sr = new StreamReader("test.txt")){ string line = null; while (((line = sr.ReadLine())) != null) { Console.WriteLine(line); }}或者 u 阅读全文

posted @ 2017-09-30 17:19 靖康耻 阅读(1113) 评论(0) 推荐(0) 编辑

c# 复制文件

摘要: using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace ConsoleApplication2 { internal class Program { ... 阅读全文

posted @ 2017-09-30 17:07 靖康耻 阅读(131) 评论(0) 推荐(0) 编辑

c#基础之集合

摘要: using System; using System.Collections; using System.Collections.Generic; namespace ConsoleApplication2 { internal class Program { public static void Main(string[] args) { ... 阅读全文

posted @ 2017-09-30 12:14 靖康耻 阅读(143) 评论(0) 推荐(0) 编辑

找出子字符串在字符串中的所有索引

摘要: /// /// 找出子字符串在字符串中的所有索引,"ccc"在"ccccc"中认为只有一个 /// /// /// /// private static List AllIndexOf(string str, string subStr) { List... 阅读全文

posted @ 2017-09-30 08:15 靖康耻 阅读(533) 评论(0) 推荐(0) 编辑

导航