Functions that deal with files throw an exception


C++ functions that deal with files throw an exception when an error occurs, while many other languages tend to leave it to the programmer to verify that the operation succeeded, and does not do anything if it failed. Every C++ function that performs file I/O will thus need to either declare that it can throw an IOException, or contain a try-catch-finally block to deal with it. Response?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Functions that deal with files throw an exception
Reference No:- TGS0119505

Expected delivery within 24 Hours