Use boost. filesystem for file operations

Source: Internet
Author: User

Because the file system is associated with the operating system, and the APIs on Windows and unix platforms are quite different. Therefore, file operations have always been a headache for c ++ programmers who develop platforms.

Although the <iostream> library of STL provides simple file operations (only for file creation and deletion), it is far from meeting our needs. Therefore, the boost. filesystem Library provides a cross-platform file library to facilitate development by programmers.

Note: boost. filesystem has been incorporated into TR2. Although it has not been formally standardized, It is supported in vc11 and gcc and can be used directly. The corresponding namespace is std: tr2: sys.

IBM has written an article about Boost Filesystem Library, so I will not discuss it here. For detailed descriptions of each function, see the msdn document.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.