Directories in VS Standard C++ Library?

Is there a header or something in the Standard C++ Library for manipulating files? I want to do all file operations in native C++ because they are going to be taking a long time.
closed account (zb0S216C)
snipslog wrote:
Is there a header or something in the Standard C++ Library for manipulating files?
#include <fstream>[1]

References:
[1] http://www.cplusplus.com/doc/tutorial/files/


Wazzak
Last edited on
I guess I should have been more specific. I meant directories. Thanks for the link though. It lead me to the C Run-Time Library reference that has directory and file management classes.
His answer is still the correct one. All file manipulation is done through fstream header (ifstream, ofstream, fstream).

What exactly are you trying to do because what I am guessing is that you want a tree directory in a window where the user can choose a folder, much like the format of windows explorer or maybe Microsoft Word when you click on "Save As" and it opens the save as window. Because there can be directories in directories and so on that is only limited by the amount of space you have on your hard drive ... you have to create a directory tree. I googled "C++" directories tree and got a lot of hits on info that could help you out on that. Because creating directory tree is Operating System dependent, I can't sit here and give you examples because Windows is different from Linux and so on so you need to pay attention to that.
Topic archived. No new replies allowed.