How do I create a file AND any folders, if the folders don't exist?
Hi folks, imagine i wish to create (or overwrite) the following file :- C:\Temp\Bar\Foo\Test.txt Using the File.Create(..) method, this can do it. BUT, if i don't have either one of the following folders (from that example path, above) Temp Bar Foo then i get an DirectoryNotFoundException thrown. So .. given a path, how can we re...