title: List all files in a folder - full path of the file
body: <p>I have a folder in <code>C:\Name\Folder\</code> and in that I have several files.</p>
  
  <p>I need to display the full file path of the files in that folder.</p>
  
  <p>It should display all the files in the format of <code>C:\Name\Folder\file.txt</code>. My code is as follows;</p>
  
  <pre><code>string[] filePaths = Directory.GetFiles(@"C:\Name\Folder\");
  for (int i = 0; i &lt; filePaths.Length; ++i) {
      string path = filePaths[i];
      Console.WriteLine(System.IO.Path.GetFileName(path));
  }
  </code></pre>
  
  <p>It only prints the file name, but I also need it to print the full path of the file.</p>