Skip to content

Instantly share code, notes, and snippets.

@catharsis96
Created May 29, 2017 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catharsis96/150f14bdab38ffda589e353a0d29c624 to your computer and use it in GitHub Desktop.
Save catharsis96/150f14bdab38ffda589e353a0d29c624 to your computer and use it in GitHub Desktop.
using System;
using System.IO;
using System.Text;
using System.Net;
namespace projectCSharp2
{
class Program
{
static void Main(string[] args)
{
//write some text to the file
string text = "We want to write this to our file.";
File.WriteAllText(@"WriteText.txt", text);
//download string method
WebClient client = new WebClient();
string reply = client.DownloadString(address);
Console.WriteLine(reply);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment