April 8th, 2010, 01:40 PM
thanks a lot sir
i finally found a solution for my problem
thanks a lot
April 8th, 2010, 12:14 PM
ok
i got what u r trying to explain
now problem is since i am writing in file from main() hence i cant write each data member individually
can u suggest any other approach
thank you
April 8th, 2010, 11:59 AM
but i want to write entire object
and not the individual fields
April 8th, 2010, 11:35 AM
we always have to cast class pointer to char pointer while reading or writing to a file
and also need to specify size of the object which i did
plz tell me whats wrong with that function call
April 8th, 2010, 09:48 AM
here is the code
plz help me with the case 2 present in main...
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<stdlib.h>
class student
April 8th, 2010, 09:48 AM
here is the code
plz help me with the case 2 present in main...
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<stdlib.h>
class student