简体   繁体   中英

c++: how to read from and write to a folder

I've found tons 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM