Hi,
Refer
this link.
here is the sample code for getting selected file from OpenFileDialog,
private void button1_Click(object sender, System.EventArgs e)
{
if(openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
System.IO.StreamReader sr = new
System.IO.StreamReader(openFileDialog1.FileName);
MessageBox.Show(sr.ReadToEnd());
sr.Close();
}
}
you can access selected file using openFileDialog.FileName.
hope this is what you want.
thanks
-amit.