Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

C++ Foundations: File I/O and Exception Handling

Many applications need to use files to store and read data. This course will teach you the basics of using files in C++, including file I/O, and how to handle error conditions.

Beginner
52m
(4)

Created by Giovanni Dicanio

Last Updated May 14, 2025

Course Thumbnail
  • Course

C++ Foundations: File I/O and Exception Handling

Many applications need to use files to store and read data. This course will teach you the basics of using files in C++, including file I/O, and how to handle error conditions.

Beginner
52m
(4)

Created by Giovanni Dicanio

Last Updated May 14, 2025

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

Many applications need to use files for storing data and reading it back. These may be simple configuration files or more complex pieces of structured data. In this course, C++ Foundations: File I/O and Exception Handling, you’ll learn how to implement basic input/output operations with files in C++. First, you’ll see how to open a file, how to read and write data, and how to handle error conditions. Then, you’ll explore formatted output using std::format and std::print. Finally, you’ll learn how to handle error conditions using exceptions or other approaches like std::expected. When you’re finished with this course, you’ll have the skill and knowledge needed to implement file I/O operations and handle error conditions in your own C++ code.

C++ Foundations: File I/O and Exception Handling
Beginner
52m
(4)
Table of contents

About the author
Giovanni Dicanio - Pluralsight course - C++ Foundations: File I/O and Exception Handling
Giovanni Dicanio
13 courses 4.5 author rating 678 ratings

Giovanni Dicanio is a computer programmer specialized in both cross-platform C and C++, and Windows operating system development. He is a Microsoft MVP for Visual C++. He also blogs on msmvps.com/gdicanio.

Get started with Pluralsight