Untitled
public text v1 · immutable// * I Like to do things the .NET WAY!!!!!!!!!!!!!!!! * //
public void whatever()
{
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("URLTOFILEHERE");
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
Stream istrm = resp.GetResponseStream();
for(int i = 1; ; i++)
{
int ch = istrm.ReadByte();
if(ch == -1) break;
Console.Write((char) ch);
}
resp.Close();
}