title: C# User Input Into Byte Array
body: <p>This is probably a very ridiculous question but I can't figure out how to import the user's input into a byte array. Since user input is always in a string format a conversation will be needed, however the numbers he entered must be the same in the array. For example: </p>
  
  <pre><code>Console.Write("Enter a number: ");
  string text = Console.ReadLine();
  
  /* Lets assume the user entered 22, 101, 1
     How would I get those exact numbers in byte[]
  */
  
  byte[] arr = new Byte[] {text};
  </code></pre>
  
  <p>UPDATED: what I am looking to get is </p>
  
  <pre><code>byte[] arr = new Byte[] {22, 101, 1};
  </code></pre>