title: Batch writing file names to a text file
body: <p>I have a folder "C:/files" it will have say 10 files in it how would I write the files name to a text file called files.txt. I need it so the names are all in septate lines so it will look something like this.</p>
  
  <pre><code>file1
  file2
  file3
  ect
  </code></pre>
  
  <p>Thanks if any one can help.</p>