title: readdir vs scandir
body: <p>1] Which of the functions is faster? <br/>
  2] what are the differences?<br/></p>
  <p><code>Differences</code></p>
  <blockquote>
  <p>1] readdir returns the name of the next entry in the directory. Scandir returns an array of files and directories from the directory. <br/></p>
  <p>2] readdir has to have a resource handle open until all the entries are read. scandir, perhaps creates an array of all the entries and closes the resouce handle?</p>
  </blockquote>