Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.IO;
- namespace Petuch2_n4 {
- class Program {
- static void Main(string[] args) {
- string inFile = @"C:/test/infile.txt";
- string outFile = @"C:/test/out.txt";
- File.Copy(inFile, outFile);
- StreamReader inStream = new StreamReader(outFile);
- string inFileContent = inStream.ReadToEnd();
- Console.WriteLine(inFileContent);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement