   Checking existance of a directory in c++
  Im looking for a way to check wether or not a directory exists using standard c++. Id rather not use any external libraries (like the windows API) unless there really is no other way to do it. Iv googled around with no luck.On the same topic, Im also wondering if there is a function(s) to get a list of all the files/directories in a certain locationthanks,chris   
  Standard C++ has no notion of directories; you need to use a third party library or API to deal with them.   ;Quote:Original post by coderchrisIm looking for a way to check wether or not a directory exists using standard c++. Id rather not use any external libraries (like the windows API) unless there really is no other way to do it. Iv googled around with no luck.Alas, there is no standard way to do this yet. The Boost.FileSystem library, or a variant of it, is likely to be adopted in to TR2, so I'd recommend using that (and it's easier to use than most platform specific APIs).Quote:On the same topic, Im also wondering if there is a function(s) to get a list of all the files/directories in a certain locationAgain, see Boost.FileSystem.