Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var webRequest = WebRequest.Create(@"http://photo-51.netau.net/changelog");
- using (var response = webRequest.GetResponse())
- using (var content = response.GetResponseStream())
- using (var reader = new StreamReader(content))
- {
- List<string> lines = new List<string>();
- var strContent = reader.ReadToEnd();
- string line;
- while((line = reader.ReadLine()) != null){
- lines.Add(line);
- listBox1.Items.Add(lines);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement