title: Why Directory.GetFiles() doesn't accept the input of the variable?
body: <pre><code>using System;
  using System.IO;
  namespace GetFilesFromDirectory
  {
      class Program
      {
          static void Main(string[] args)
          {
              Console.WriteLine("Write your Name of Disc");
              string myDisc = Console.ReadLine();
              string myDisc1 = "@\"";
              Console.WriteLine("Write your Directory");
              string myDir1 = Console.ReadLine();
              string myDir = ":\\";
              string myDir2 = "\\\"";
              string myPath = myDisc1 + myDisc + myDir + myDir1 + myDir2;
              Console.WriteLine(myPath);
              string[] filePaths = Directory.GetFiles(myPath);
  
  
              foreach (var files in filePaths)
              {
                  Console.WriteLine(files);
              }
              Console.ReadLine();
          }
  
      }
  }
  </code></pre>