Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.IO;
  5.  
  6. namespace SeparateFiles
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             var stopWatch = new Stopwatch();
  13.             stopWatch.Start();
  14.  
  15.             var mainPath = "";
  16.             var partsPath = "";
  17.             var howManyFiles = "";
  18.  
  19.             var objMainPath = new FileSplit(mainPath);
  20.             var objPartsPath = new FileSplit(partsPath, howManyFiles);
  21.  
  22.             mainPath = objMainPath.MainFilePath;
  23.             partsPath = objPartsPath.PartsDirectory;
  24.             howManyFiles = objPartsPath.HowManyFiles;
  25.             objMainPath.Split(mainPath, howManyFiles, partsPath);
  26.  
  27.             stopWatch.Stop();
  28.             Console.WriteLine($"Time Spent (s): {stopWatch.Elapsed.TotalSeconds:F2}");
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement