Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scanning files in C++ using its own standard libraries

Tags:

c++

I want to know, or get a clue how to search through a directory in C++ with its own standard libraries or to see if it is possible at all.

Currently I have found several solution to searching directory, but they all use some external libraries such as this SO question:

recursive folder scanning in c++

How should we approach this?

like image 762
Mostafa Talebi Avatar asked Aug 26 '14 10:08

Mostafa Talebi


1 Answers

There is no filesystem facilities in the C++ standard. There is a technical specification for it which may be included in a future version of C++.

Until then, you will have to use platform specific functions or a library that wraps them. Apparently the new proposal is almost the same as boost's API, so I recommend using boost even if it's ubiquitousness wasn't good enough reason already.

like image 73
eerorika Avatar answered Oct 06 '22 18:10

eerorika