ABSTRACT

Many computer users have had the unfortunate experience of an unexpected hard-ware failure (e.g., an interruption of power) or a soware “crash” before they have

CONTENTS 11.1 Introductory Example: Environmental Data Analysis 410 11.2 e ifstream and ofstream Classes 417 11.3 Additional Stream Features 426 Chapter Summary 439 Test Yourself 442 Exercises 443 Programming Problems 445 Descriptions of Data Files 448

saved a document they are preparing or editing. is happens because while the information is being entered or edited, it is stored in the computer’s main memory and when this failure occurs, this memory is deallocated and its contents are lost. Most users soon learn to follow the “save oen” advice.