O'Reilly logo

Computing with C# and the .NET Framework, 2nd Edition by Gittleman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11 Exception Handling and Input/Output

11.1 Exception Handling

11.2 Text File Input and Output

11.3 Binary Input and Output

11.4 Menus and File Dialogs

In this chapter we explore exceptions and input and output in C#. Exception handling enables us to manage serious errors that might occur such as trying to read from a file that does not exist. It is essential for implementing input and output operations and networking, in which errors beyond the control of the programmer may easily occur.

After we discuss exception handling, we show how to read from and write to external files. Files persist after our program is finished, keeping data for later use. Business applications, and many others, are heavily dependent on good access to external data. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required