...
Consequently, it is easy for file operations to fail silently, if the methods' return values are ignored. Therefore, do not ignore return values of file-based methods. (This guideline rule is a specific instance of EXP00-J. Do not ignore values returned by methods.)
...