title: How do I create an entire directory structure for a perhaps nonexistant path and file?
body: <p>I am working on a c# application that has a file path in the app.config that I would like to create or overwrite if it does/doesn't exist.</p>
  
  <p>Example: <code>&lt;add key="file" value="c:\myapp\file.txt"/&gt;</code></p>
  
  <p>I am having problems with the directory / file combination creation.</p>
  
  <p>Can someone please give me code example of how to create the entire folder path including an empty text file</p>