Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string   OpenedFilePath = openFileDialog1.FileName;
                OpenFile newFile        = new OpenFile();
                string[] FileData       = newFile.GetFile(OpenedFilePath);
                FileDataBox.Text = "";
                foreach (string line in FileData)
                {
                    FileDataBox.Text += (line + "\r\n");
                }
            }
        }