I have a directory (say string pathFile = P: \ Database \ new) to which I want to copy the file selected by the user. Began to write:
private void внестиДанныеToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog opfd = new OpenFileDialog(); if (opfd.ShowDialog() == DialogResult.OK) { string path = opfd.FileName;//этот файл нужно сохранить в заданную заранее директорию //? } } Tell me how to modify the code so that the file is saved in the specified directory, thanks.