programming-examples/c-sharp/Files/C# Program to Copy the Contents from one File to another File.cs
2019-11-15 12:59:38 +01:00

19 lines
392 B
C#

/*
* C# Program to Print the Sum of all the Multiples of 3 and 5
*/
using System;
using System.IO;
class Program
{
static void Main()
{
File.Copy("sri.txt", "srip.txt");
Console.WriteLine(File.ReadAllText("sri.txt"));
Console.WriteLine(File.ReadAllText("srip.txt"));
Console.Read();
}
}
/*
Contents of File S
Contents of File S