c++: how to read from and write to a folder
I've found to开发者_如何转开发ns of examples on file IO, but nothing with folders?
anyone have a quick example?
Note: I'm on *.nix
You can take a look at Boost FileSystem
You shouldn't be reading and writing to folders - that's the file system's job. If you want to read a directory, take a look at opendir and friends.
Take a look at opendir, readdir, closedir, etc. functions.
精彩评论