File Handling in C++: Performing Advanced File Stream Operations

C++ 20    |    Expert
  • 15 Videos | 1h 55m 8s
  • Includes Assessment
  • Earns a Badge
The insertion and extraction operators are very commonly overloaded in custom C++ classes. Such overloads make it easy to write objects out to cout or to file and read objects in from cin or a file. In this course, learn how to correctly overload the insertion and extraction operators for streams and explore different aspects of text data streaming. Next, work with different file open modes, including read, write, append, and ate modes. Finally, practice using the stream state bits contained within stream objects. Upon completion, you'll be able to leverage file open modes, check stream state bits, and correctly use the std::filesystem API.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    overload and use the insertion operator
    overload the extraction operator
    review operations with input streams
    use and contrast the get() and getline() functions
    use seekg() to perform random access operations
    read in and write out data to text files
    use and contrast the write and append modes
  • use the ate mode to write out data
    write out data using binary mode
    write out and read in actual binary data
    review the good, bad, eof, and fail state bits
    use the filesystem library
    perform operations using the filesystem library
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    1m 43s
    UP NEXT
  • Playable
    2. 
    Writing Out Custom Objects
    7m 3s
  • Locked
    3. 
    Reading in Custom Objects
    5m 37s
  • Locked
    4. 
    Reviewing Operations with Input Streams
    9m 49s
  • Locked
    5. 
    Using get() and getline()
    8m 20s
  • Locked
    6. 
    Using seekg()
    8m 14s
  • Locked
    7. 
    Using put(), read(), and write()
    7m 33s
  • Locked
    8. 
    Understanding the Write and Append Modes
    8m 10s
  • Locked
    9. 
    Using the Ate Mode
    8m 53s
  • Locked
    10. 
    Writing Out Data Using Binary Mode
    9m 27s
  • Locked
    11. 
    Write Out and Read in Binary Data
    7m 36s
  • Locked
    12. 
    Reviewing Stream State Bits
    11m 17s
  • Locked
    13. 
    Using the Filesystem Library
    6m 55s
  • Locked
    14. 
    Performing Operations on Files
    9m 57s
  • Locked
    15. 
    Course Summary
    4m 35s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.