private void button3_Click(object sender, EventArgs e)
{
// Read the file as one string.
System.IO.StreamReader myFile =
new System.IO.StreamReader("c:/Users/Tim/Desktop/Hi/Step3.txt");
string Step3String = myFile.ReadToEnd();
myFile.Close();
this.displayText.Text += Step3String;
private void button3_Click(object sender, EventArgs e)
{
// Read the file as one string.
System.IO.StreamReader myFile =
new System.IO.StreamReader("c:/Users/Tim/Desktop/Hi/Step3.txt");
string Step3String = myFile.ReadToEnd();
myFile.Close();
this.displayText.Text += Step3String;
Stream myStream = null;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "Text File|*.txt";
openFileDialog1.RestoreDirectory = true;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
try
{
if ((myStream = openFileDialog1.OpenFile()) != null)
{
CodeBox.LoadFile(openFileDialog1.FileName);
using (myStream)
{
}
}
}
catch (Exception ex)
{
MessageBox.Show("" + ex.Message);
}
}
using System.IO;
Stream myStream = null;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "Text File|*.txt";
openFileDialog1.RestoreDirectory = true;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
try
{
if ((myStream = openFileDialog1.OpenFile()) != null)
{
CodeBox.LoadFile(openFileDialog1.FileName);
using (myStream)
{
}
}
}
catch (Exception ex)
{
MessageBox.Show("" + ex.Message);
}
}
using System.IO;
Copyright © 2024, NextGenUpdate.
All Rights Reserved.