title: What circumstances ostream::write or ostream::operator<< would fail under?
body: <p>In my C++ code, I am constantly writing different values into a file. My question is that if there is any circumstances that write or &lt;&lt; would fail under, considering the fact that file was opened successfully. Do I need to check every single call of write or &lt;&lt; to make sure it was carried out correctly?</p>