HOME-WORK FOR THE "ONE WEEK HOLIDAY"
NOTE DOWN the following Key Points in DATA FILE HANDLING : Read( ) : A function used to read a fixed number of bytes from the specified file stream object and puts them in the object passed as first argument. General Syntax : Straeam_object.read ( (char *) &Oject , sizeof(Object)); Example : ………………… code……………….. EMPLOYEE emp; // an object/instance of class created fstream f; f.open(“EmpDetails.dat”,ios::in);// an already xisting file containing employs details opened for reading // if open succeeds then f contains NON-ZERO VALUE i.e. an address in main memory allocated for the //file object….if open fails f will be zero. if(!f) { cout<<” file can not be open—OPEN FAILED “; exit(1); //send FAILURE=1 MESSAGE TO OPERATING SYATEM AND skip execution of the remaining part //of program. } While(!f.eof()) { C...