Hey all, just wondering if you could give me a hand figuring our directories in c++.
Basically what I plan on making is a program that will ask you which program extension you're looking for (ie .docx, .cpp, .txt) then it will search the directory for all files with that extension, return those to the user and allow the user to choose which file they want to open. I'm fairly certain I know how to get the extension off of a string. As well as being able to put file names into a vector of strings to accomplish the final task, however I'm unsure of how to go about getting the file names.
The directory used will simply be the directory that the .exe is in, no need to get it as input. I also want to accomplish this using only the C++ standard library. I've done some searching for examples and I've found stuff that is either using a directory it gets as input, or is using things like <dirent.h>
If you guys could give me a simple push in the right direction on how I might be able to start this it would be greatly appreciated!