
scope
By: a guest on
Aug 21st, 2012 | syntax:
None | size: 0.75 KB | hits: 18 | expires: Never
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace StreamReader
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
//StreamReader sr = new StreamReader(
StreamReader sr = new StreamReader(File.OpenRead(ofd.FileName));
}
}
}
}