private void button2_Click(object sender, EventArgs e) { OpenFileDialog open1 = new OpenFileDialog(); // file filters open1.Filter = "Document Files(*.RAR)|*.RAR"; if (open1.ShowDialog() == DialogResult.OK) { // document file path txtdocumentuploda.Text = open1.FileName; } }
System.IO.File.Copy("C:\\Temp\\Test.zip", "D:\\Test.zip");
using System; using System.IO; class Program { static void Main() { // Figure 1 // Copy one file to a non-existent location File.Copy("file-a.txt", "file-new.txt"); // Display the contents of both files Console.WriteLine(File.ReadAllText("file-a.txt")); Console.WriteLine(File.ReadAllText("file-new.txt")); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)