title: C# UTF8 Decoding, returning bytes/numbers instead of string
body: <p>I've having an issue decoding a file using an UTF8Encoder.</p>
  
  <p>I am reading text from a file which I have encoded with UTF8 (String > Byte)
  See the following method.</p>
  
  <pre><code>public static void Encode(string Path)
      {
          string text;
          Byte[] bytes;
          using (StreamReader sr = new StreamReader(Path))
          {
              text = sr.ReadToEnd();
              UTF8Encoding Encoding = new UTF8Encoding();
              bytes = Encoding.GetBytes(text);
              sr.Close();
          }
          using (StreamWriter sw = new StreamWriter(Path))
          {
              foreach (byte b in bytes)
                  sw.Write(b.ToString());
              sw.Close();
          }
      }
  </code></pre>
  
  <p>I then decode it using the method</p>
  
  <pre><code>    public static String Decode(string Path)
      {
          String text;
          Byte[] bytes;
          using (StreamReader sr = new StreamReader(Path))
          {
              text = sr.ReadToEnd();
              UTF8Encoding Encoding = new UTF8Encoding();
              bytes = Encoding.GetBytes(text);
              text = Encoding.GetString(bytes);
              return text;
          }
      }
  </code></pre>
  
  <p>But instead of decoding the byte to have it come back to text, it just returns it as a string of numbers. I can't see what I am doing wrong as I don't really have much experience with this.</p>
  
  <p>EDIT: To clarify what I'm trying to achieve. I'm trying to have a text file save the text as bytes, rather than chars/numbers. This is to provide a very simple encryption to the files, that so you can't modify them, unless you know what you're doing. The Decode function is then used to read the text (bytes) from the file and make them in to readable text. I hope this clarified what I'm trying to achieve.</p>
  
  <p>PS: Sry for no comments, but I think it's short enough to be understandable</p>