Ejemplo n.º 1
0
 public void Execute(IReplWindow window, string arguments)
 {
     using (var stream = new StreamReader(arguments)) {
         string line;
         while ((line = stream.ReadLine()) != null) {
             if (line.StartsWith("%%")) {
                 window.PasteText(String.Empty);
             } else {
                 window.PasteText(line);
             }
         }
     }
     window.PasteText(window.CurrentView.Options.GetNewLineCharacter());
 }
Ejemplo n.º 2
0
 public void Execute(IReplWindow window, string arguments)
 {
     using (var stream = new StreamReader(arguments)) {
         string line;
         while ((line = stream.ReadLine()) != null)
         {
             if (!line.StartsWith("%%"))
             {
                 window.PasteText(line);
             }
         }
     }
     window.PasteText(window.TextView.Options.GetNewLineCharacter());
 }