#include #include #include #include class student { int rollno,marks; char name[20]; public: void show(); void get(); }; void student::get() { cout<<"Enter the name of student:"; cin>>name; cout<<"Enter the roll no. of student:"; cin>>rollno; cout<<"Enter the marks of student:"; cin>>marks; } void main() { clrscr(); student record; fstream file; file.open("student.txt",ios::in|ios::out|ios::binary|ios::app); char flag='y'; while(flag=='y'||flag=='Y') { record.get(); file.write((char*)&record,sizeof record); cout<<"Enter another record(Y/N)...."; cin>>flag; } file.seekg(0); cout<<"Roll No.\tName\tMarks"<