Use iostream instead of C-style file operations.