System.IO.StreamReader
 
///C# example...
OpenFileDialog od = new OpenFileDialog(); private void button1_Click(object sender, System.EventArgs e) { od.Filter = "text files|*.txt"; od.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal); od.RestoreDirectory = true; if(od.ShowDialog() == DialogResult.OK) { System.IO.StreamReader sReader = new System.IO.StreamReader(new System.IO.FileStream(od.FileName , System.IO.FileMode.Open)); while(sReader.Peek()!=-1) { Console.WriteLine(sReader.ReadLine()); } sReader.Close(); } }
'///vb.net example...
Dim od As New OpenFileDialog Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click With od .Filter = "text files|*.txt" .InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal) .RestoreDirectory = True If .ShowDialog = DialogResult.OK Then Dim sReader As New System.IO.StreamReader(New System.IO.FileStream(od.FileName, System.IO.FileMode.Open)) While Not sReader.Peek = -1 Console.WriteLine(sReader.ReadLine) End While sReader.Close() End If End With End Sub
 System.Net.WebClient
 
///C# example
///download from the internet to file...
	System.Net.WebClient wClient = new System.Net.WebClient();
	wClient.DownloadFile("http://google.com",@"C:\google.htm");
	wClient.Dispose();
///download from the internet to a byte array...
System.Net.WebClient wClient = new System.Net.WebClient(); byte[] bHtml = wClient.DownloadData("http://google.com"); string html = System.Text.Encoding.Default.GetString(bHtml); MessageBox.Show(html); wClient.Dispose();

'///vb.net example...
'///download from the internet to file...

Dim wClient As New System.Net.WebClient wClient.DownloadFile("http://google.com", "C:\google.htm") wClient.Dispose()
'///download from the internet to a byte array...
Dim wClient As New System.Net.WebClient Dim bHtml As Byte() = wClient.DownloadData("http://google.com") Dim html As String = System.Text.Encoding.Default.GetString(bHtml) MessageBox.Show(html) wClient.Dispose()
 String Reverse in vb.net / c#
 
'///C# example...
private void
button1_Click(object sender, System.EventArgs e) { MessageBox.Show(StringReverse("test 123")); } private string StringReverse(string ToReverse) { Array arr = ToReverse.ToCharArray(); Array.Reverse( arr ); // reverse the string char[] c = (char[])arr; byte[] b = System.Text.Encoding.Default.GetBytes(c); return System.Text.Encoding.Default.GetString(b); } '///vb.net example...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click     MessageBox.Show(StringReverse("test 123")) End Sub Private Function StringReverse(ByVal ToReverse As String) As Char()     Dim arr As Array = ToReverse.ToCharArray     Array.Reverse(arr)     Return DirectCast(arr, Char()) End Function