■32790 / ) |
Re[4]: OpenFileDialog |
□投稿者/ マイクロミクロ (3回)-(2009/02/14(Sat) 19:31:56)
|
すいません。ソースはこちらで考えて下さい…。
private void button1_Click(object sender, EventArgs e)
{
if (ofd.ShowDialog() == DialogResult.OK)
{
System.IO.Stream stream;
stream = ofd.OpenFile();
if (stream != null)
{
System.IO.StreamReader sr = new System.IO.StreamReader(stream);
Console.WriteLine(sr.ReadToEnd());
sr.Close();
stream.Close();
}
}
}
でも、どこに出力先の設定をすればいいのかが、わからないのです。何度もすいません。
|
|