/*
DirectoryExists, CreateDir, Exception example
The following example creates a directory ‘C:\temp’ if it does not already exist.
*/
#include <Filectrl.hpp>
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  if (!DirectoryExists("c:\\temp"))
  {
    if (!CreateDir("C:\\temp"))
      throw Exception("Cannot create c:\\temp directory.");
  }
} 
