Hey everyone need help on a project im doing in c++, so far I have made a command interpreter, that breaks user input into array of Strings sepperated by spaces and have a run function. Now I am trying to do the list() and list(directory) but I'm not quite sure how to in c++. The python code for it is as follows:
os.path.exists(path) Returns true if path exists.
os.listdir(path) returns a python list of contents of directory.
os.getcwd() Returns the path of current directory.
I would just like the equivalent function that would work in c++, Thank you for any suggestions