fileOps.cpp
/*
* Function to display records of file
*/
Function to display records of file
Function to display records of file
void display()
{
	ifstream inFile;	
	inFile.open("student.dat", ios::binary);
	Student obj;
	while (inFile.read((char*)&obj, sizeof(obj)))
	{
		obj.showData();
	}
	inFile.close();
}
void display ( ) { ifstream inFile ; inFile . open ( " " , ios :: binary ) ; Student obj ; while ( inFile . read ( ( char * ) & obj , sizeof ( obj ) ) ) { obj . showData ( ) ; } inFile . close ( ) ; }
Function to display records of file
Function to display records of file
// input file stream
 //read(pointer to characters, size of file)
