Apache C++ Standard Library User's Guide
Chapter 30: File Input and Output
30.1 About File Streams
30.1.1 Code Conversion in Wide Character Streams
30.2 Working with File Streams
30.2.1 Creating and Opening File Stream Objects
30.2.2 Checking a File Stream's Status
30.2.3 Closing a File Stream
30.3 The Open Mode
30.3.1 The Open Mode Flags
30.3.1.1 The in and out Open Modes
30.3.1.2 The Open modes ate, app, and trunc
30.3.1.3 The binary Open Mode
30.3.2 Combining Open Modes
30.3.3 Default Open Modes
30.4 Binary and Text Mode
30.5 File Positioning
30.5.1 How Positioning Works with the Iostream Architecture