C++ · Files and streams

Opening a file for reading

A misspelled file name gives no error message in C++, so a program that reads a file must check for itself that it opened.