Stream myStream; OpenFileDialog FileDialog1 = new OpenFileDialog(); if (FileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if ((myStream = FileDialog1.OpenFile()) != null) { string strfilename = FileDialog1.FileName; string filetext = File.ReadAllText(strfilename); directorylistbox.Items.Add(strfilename + "\n"); finalresult.AppendText(filetext); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)