has anyone experienced problems with interactions between OpenFileDialog and FileStream? When I select "open" from an OpenFileDialog the subsequent calls to FileStream do not create a file. If I do anything else, eg, navigate to other folders, and then press "cancel" the file is created. This occurrs just with the simple code below. Any ideas
private void button1_Click(object sender, System.EventArgs e
// open the common dialog bo
OpenFileDialog of = new OpenFileDialog()
of.ShowDialog()
of.Dispose()
private void button2_Click(object sender, System.EventArgs e
String fn = Environment.CurrentDirectory + "\\test.txt"
FileStream f = new FileStream(fn,FileMode.Create)
f.Close()
}