using Microsoft.Win32; Зберегти saveFileDialog.Filter = "Text file (*.txt)|*.txt|C# file (*.cs)|*.cs"; if (saveFileDialog.ShowDialog() == true){ File.WriteAllText(saveFileDialog.FileName, textBox.Text); } OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "Image files (*.png;*.jpg)|*.png;*.jpg|All files (*.*)|*.*"; if(openFileDialog.ShowDialog() == true){ textBox.Text = File.ReadAllText(openFileDialog.FileName); } saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); Кілька файлів |