title: Output an index number and remove the path from file
body: <p>I wrote this code, it works but there are 2 features I'd like to implement and I can't find out how.</p>
  
  <p>First:
  How to add an index number before each song so it looks like this:</p>
  
  <blockquote>
    <ol>
    <li>Song1</li>
    <li>Song2</li>
    <li>Song3</li>
    </ol>
  </blockquote>
  
  <p>Second:
  The output to file includes the path to the file. How do I remove it?</p>
  
  <pre><code>namespace ConsoleApp1
  {
      class Program
      {
          static void Main(string[] args)
          {
              string[] files = Directory.GetFiles("E:\\Music", "*", SearchOption.AllDirectories);   
  
              foreach (string file in files)
              {
                  string FileName = Path.GetFileName(file);
                  Console.WriteLine(FileName);
                  System.IO.File.WriteAllLines("E:\\songs.txt", (files));             
              }          
  
              Console.WriteLine("Press any key to exit");
              Console.ReadLine();   
  
          }
      }
  }
  </code></pre>