C++ class program to illestrate File operations
by Ranjith | March 13th, 2010.AIM
Write a program to illustrate the write() member function which are usually used for transfer of data blocks to the file.
ALGORITHM
1. Start the process
2. Invoke the class
a. Create two inline member functions .ie, getdata() and dispdata()
i. getdata() for input
ii. dispdata() for display
3. Open the file in fstream mode
4. Write the data in to the file
5. Slose the file
6. Stop the process
PROGRAM
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
class student
{
private:
int rno;
char name[10];
float [...]













