开发者

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

开发者 https://www.devze.com 2023-03-02 15:48 出处:网络
I\'ve found to开发者_如何转开发ns of examples on file IO, but nothing with folders? anyone have a quick example?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消