File system interaction is a core requirement for almost any modern application, from reading configuration files to managing large datasets. This course provides the foundational knowledge to manage files and directories using standard C++.
By the end of this course, you will be proficient in using the C++ standard library's filesystem components to handle paths, check file properties, and execute reliable file manipulation tasks in your programs.
What you'll learn:
* Understand the fundamental concepts of paths, file status, and directory structure within the C++ standard library.
* Master path construction, normalization, decomposition, and manipulation using the `std::path` class.
* Practice iterating over directory contents and performing recursive traversal for complex operations.
* Apply standard functions for copying, moving, renaming, and removing files and directories safely.
* Configure and retrieve file metadata, including size, permissions, and timestamps.
* Implement robust error handling for filesystem operations using `std::error_code`.
The course begins by defining key terminology and exploring the structure of the `std::path` class before moving into practical examples of directory iteration and file manipulation. We conclude with best practices for handling errors in production code. This course is designed for beginner C++ programmers who want to learn how to integrate file system interaction into their projects. No prior experience with file I/O or system calls is required, just basic knowledge of C++ syntax. Start building C++ applications that effectively interact with the underlying operating system today.
เนื้อหาคอร์ส
สิ่งที่คุณจะได้รับ
📜ใบประกาศนียบัตร เพิ่มในโปรไฟล์ LinkedIn ของคุณ
💬ติวเตอร์ AI ส่วนตัว ติดขัดในบทเรียน? ถามติวเตอร์ในตัวของคุณได้ทุกอย่าง ทุกเวลา