title: Opening directory function
body: <p>This is a basic understanding concepts related question.</p>
  
  <p>Working using: Embarcadero C++ Builder</p>
  
  <p>What is the difference between:</p>
  
  <pre><code>opendir("C:\\XYZ")
  </code></pre>
  
  <p>and</p>
  
  <pre><code>String file = "C:\\XYZ";
  opendir(file);
  </code></pre>
  
  <p>Aren't both strings?
  The first one works but the sexond gives me error:
  E2034 Cannot convert Unicode String to ' const char*'</p>
  
  <p>In a case where I take input from the user I can only pass a string. How do i pass the whole path?</p>