i have created a class as shown below
class Registry
{
char m_name[20];
char m_type[20];
unsigned int m_value;
public:
Registry(char *name,char *type,int value=0)
{
m_name=name;
m_type=type;
m_value=value;
}
now i created a object as shown below
Registry r1("alex","rez_sz",10);
now i want this object to be stored in a text file....plz tell me how to store the object in text file...?