Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- namespace CopyBinaryFile
- {
- class Program
- {
- static void Main(string[] args)
- {
- using (FileStream reader = new FileStream(@"..\..\..\university.png", FileMode.Open, FileAccess.Read))
- using (FileStream writer = new FileStream(@"..\..\..\newFile.png", FileMode.Create, FileAccess.Write))
- {
- reader.CopyTo(writer);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment