Created
May 29, 2017 11:45
-
-
Save catharsis96/150f14bdab38ffda589e353a0d29c624 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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