Witam, studiuje Automatykę i Robotykę, wykładowca rzucił nas na głęboką wodę, o ile w pierwszym semestrze z innym wykładowcą miałem podstawy programowania c++ to obecny wykładowca zażyczył sobie projekt z c#, mam gotowy działający kod z szablonu, który ma służyć za początek programu tylko należy go odpowiednio zedytować, chciałbym tylko prosić o jego wyjaśnienie ponieważ na własną rękę nie mogę znaleźć nic prócz nauki podstaw, a głównie chciałbym wiedzieć czy te dane gdzieś się zapisują :
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
namespace WWWInt
{
class Program
{
static void Main(string[] args)
{
// Create a request for the URL.
WebRequest request = WebRequest.Create("http://www.put.poznan.pl");
// If required by the server, set the credentials.
request.Credentials = CredentialCache.DefaultCredentials;
// Get the response.
WebResponse response = request.GetResponse();
// Display the status.
Console.WriteLine(((HttpWebResponse)response).StatusDescription);
// Get the stream containing content returned by the server.
Stream dataStream = response.GetResponseStream();
// Open the stream using a StreamReader for easy access.
StreamReader reader = new StreamReader(dataStream);
// Read the content.
string responseFromServer = reader.ReadToEnd();
// Display the content.
Console.WriteLine(responseFromServer);
// Clean up the streams and the response.
reader.Close();
response.Close();
}
}
}