File Handling in C++: Working with File Streams

C++    |    Intermediate
  • 9 videos | 57m 50s
  • Includes Assessment
  • Earns a Badge
Rating 4.1 of 9 users Rating 4.1 of 9 users (9)
C++ structures different file stream classes into an inheritance hierarchy. Input and output (I/O) operations are performed in C++ through streams, which act as intermediaries between the program and I/O devices, allowing programmers to not focus on how the actual device works. In this course, learn about the different classes and objects for C++ stream handling. Next, discover how to read data from files using objects of the ifstream class. Finally, practice writing out data to files using objects of the ofstream class, including writing out simple integers, floats, strings, and structured data. Upon completion, you'll be able to enumerate C++ file stream classes, read data from files using ifstream, and write data to files using ofstream.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Outline input and output file streams
    Read in integer and float data from a file
    Read in single and multi-word strings
    Read in data in a structured format
  • Use open() and close() functions to manage file handles
    Write out text data using ostream objects
    Write out formatted and structured data
    Summarize the key concepts covered in this course

IN THIS COURSE

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.5 of 26 users Rating 4.5 of 26 users (26)
Rating 4.4 of 5 users Rating 4.4 of 5 users (5)
Rating 4.7 of 7 users Rating 4.7 of 7 users (7)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 26 users Rating 4.5 of 26 users (26)
Rating 3.9 of 46 users Rating 3.9 of 46 users (46)
Rating 4.5 of 6 users Rating 4.5 of 6 users (6)