title: Retrieve contents of .txt file on web server without disturbing it?
body: <p>so i have a c# application which needs to use some code within a text file hosted on my web server (path: <code>https://example.com/example.txt</code>).</p>
  
  <p>The contents of the text file contain some compiled code, heres a snippet of the compiled code:</p>
  
  <pre><code> *ü
   *²0      ¾6-   +*
   +
   *²0      ¾6-   +S
   +;
   *²0      ¾6-   +y
   +`
   *²0      ¾6-   +Ÿ
   +‡
   *²0      ¾6-   +È
   +°
   *²0      ¾6-
   C
   *s0      µ6--.      y     +ð
   +Ù
  *s0    ¾6-
      +ð
   +þ
   *s0      ¾6-
   ,   +ð
   ,
   *s0      ¾6-
   ¶   +ð
   ,
   *s0      ¾6-
   û   +ð
   , 
   *s0      ¾6-
  
     +ð
   ,/
   *s0      ¾6-
   C
   *W0      µ6-
   ,W   ,G
   ,&gt;
  </code></pre>
  
  <p>In my c# application I've tried multiple ways of retrieving the contents from the text file on my web server in a way that wont mess up the compiled codes structure, such as:</p>
  
  <pre><code>string RetrieveText;
  WebClient con = new WebClient();
  RetrieveText = con.DownloadString("https://example.com/example.txt");
  MessageBox.Show(RetrieveText);
  </code></pre>
  
  <p>The problem with this is that when my c# application is executed and the <code>MessageBox.Show()</code> pops up the compiled code gets a little 'un-organized' and some of the lines of compiled code located within the text file on my web server randomly get line breaks and spaces removed, for example when the compiled code shown above is retrieved using <code>DownloadString()</code> in the c# example shown above the <code>MessageBox</code> outputs this:</p>
  
  <p>Same snippet of compiled code shown above but after i used c# to retrieve the contents of the text file hosted on my web server using <code>DownloadString()</code></p>
  
  <pre><code> *ü
   *²0      ¾6-   +* +
   *²0      ¾6-   +S   +;  *²0      ¾6-   +y
   +`  *²0      ¾6-   +Ÿ
   +‡  *²0      ¾6-   +È  +°  *²0      ¾6-
      *s0      µ6--.      y     +ð
   +Ù *s0    ¾6-     +ð
  +þ  *s0      ¾6-  ,   +ð
  ,  *s0      ¾6-   ¶   +  ,   *s0      ¾6- +    ,   *s0      ¾6-
       +   ,/  *s0      ¾6    C
   *W0      µ6    ,W   ,G ,&gt;
  </code></pre>
  
  <p>As you can see the compiled code has been changed from its original layout/structure, so basically my question is, is there a way to retrieve the contents from within a text file hosted on a web server using c#? And if so how could i retrieve the contents of the text file but without disturbing the layout/structure of the compiled code within the text file hosted on my web server?</p>
  
  <p>I need to beable to use the contents of the text file on the webserver in my c# application like so:</p>
  
  <pre><code>this.CustomCONSOLE.SetMemory(566697660U, [HERE IS WERE I NEED TO PUT THE CONTENTS OF THE TEXT FILE ON MY WEB SERVER]);
  </code></pre>
  
  <p>Hopefully this question makes sense :/</p>