Exemplo n.º 1
0
 /*static void ReadFile(string path)
  * {
  *  using (FileStream fs = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
  *  using (BufferedStream bs = new BufferedStream(fs))
  *  using (StreamReader sr = new StreamReader(bs))
  *  {
  *      string line;
  *      while ((line = sr.ReadLine()) != null)
  *      {
  *          //Regex.Replace(line, @"[^\w\s]", "");
  *          if (text)
  *          {
  *
  *          }
  *      }
  *
  *  }
  *  SplitLines(Text);
  *  SortWords(Text2);
  * }*/
 static void SplitLines(List <string> text)
 {
     Text.ForEach(t => Text2.AddRange(t.Split()));
 }