Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System.IO;
  2.  
  3. namespace Petuch2_n4 {
  4.     class Program {
  5.         static void Main(string[] args) {
  6.             string inFile = @"C:/test/infile.txt";
  7.             string outFile = @"C:/test/out.txt";
  8.  
  9.             File.Copy(inFile, outFile);
  10.  
  11.             StreamReader inStream = new StreamReader(outFile);
  12.             string inFileContent = inStream.ReadToEnd();
  13.             Console.WriteLine(inFileContent);
  14.  
  15.             Console.ReadKey();
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement