How to view what is written on a page in C #?

For example, the content of the page contains the command for the program:

wait

check

etc ...

Well

if(содержание == "wait") { wait(true); } 

and also how to break a string, here on php it is explode (), and on sharpe how?

    1 answer 1

    I found the answer myself, maybe someone will need

     using System; using System.Windows.Forms; using System.Net; using System.IO; using System.Text; class Program { static void Main(string[] args) { WebClient wc = new WebClient(); string remoteUri = "http://"; byte[] myDataBuffer = wc.DownloadData (remoteUri); string download = Encoding.ASCII.GetString(myDataBuffer); Console.WriteLine(download); Console.Read(); } }