title: Get files from directory by dynamic path
body: <p>I want to get files from a directory, and I have the directory's path in my configuration file. If I get files names like this:</p>
  
  <pre><code>var filePaths = Directory.GetFiles(@"SomePath", "*.*",
    SearchOption.AllDirectories).ToList();
  </code></pre>
  
  <p>So all work perfect. But if I try to get fileNames like this:</p>
  
  <pre><code>var path = ConfigurationManager.AppSettings.GetValues("Key");
  var filePaths = Directory.GetFiles(path[0], "*.*",
    SearchOption.AllDirectories).ToList();
  </code></pre>
  
  <p>I get an empty list. I think the problem is in the syntax of @ before the string path. But how can I give the @ before the path into the string path[0]?</p>
  
  <p>Thanks.</p>