title: How to enter the input into the command line rather than within the code?
body: <p>Here is the Huffman code to compress and decompress ASCII. I want to make a command after I run a program to enter my input where then it is compressed and another command to decompress. I just know how to place my input within the code but that is not what I want. I want it within my command box.</p>
  
  <pre><code>internal class Program
  {
      private const string Example = "this is an example for huffman encoding";
  
      private static void Main()
      {
          var huffman = new Huffman&lt;char&gt;(Example);
          List&lt;int&gt; encoding = huffman.Encode(Example);
          List&lt;char&gt; decoding = huffman.Decode(encoding);
          var outString = new string(decoding.ToArray());
  
          Console.WriteLine(outString == Example 
              ? "Encoding/decoding worked" 
              : "Encoding/Decoding failed");
  
          var chars = new HashSet&lt;char&gt;(Example);
  
          foreach (char c in chars)
          {
              encoding = huffman.Encode(c);
              Console.Write("{0}: ", c);
  
              foreach(int bit in encoding)
              {
                  Console.Write("{0}", bit);
              }
  
              Console.WriteLine();
          }
  
          Console.ReadKey();
      }
  }
  </code></pre>