In ordinary C one can decalre a structure and store data from a structure into a file,simply using the fwrite() function.
How can one store datavalues from a class to a file?
eg
class acchart{
public:
char acno[10],acname[20],actype[10];
}
I want to store Five account numbers in a file each having:
Account Number Field, Account Name and Account Type
You could also give me code for retrieving this information from the file.
Thanx People
Nkabirwa Sowed Magezi
nkabirwa@netscape.net
A Ugandan Developer for
(1) School Management Information System(SMIS) - Foxpro 2.6 ; Ms-Acess 97
(2)Debt onitoring System(DMS) - Ms-Acess 97
(3) The Loans Recovery System(LS) - Ms- Access 97
(4) The Dry Cleaners System(DS) - Ms- Access 97
How can one store datavalues from a class to a file?
eg
class acchart{
public:
char acno[10],acname[20],actype[10];
}
I want to store Five account numbers in a file each having:
Account Number Field, Account Name and Account Type
You could also give me code for retrieving this information from the file.
Thanx People
Nkabirwa Sowed Magezi
nkabirwa@netscape.net
A Ugandan Developer for
(1) School Management Information System(SMIS) - Foxpro 2.6 ; Ms-Acess 97
(2)Debt onitoring System(DMS) - Ms-Acess 97
(3) The Loans Recovery System(LS) - Ms- Access 97
(4) The Dry Cleaners System(DS) - Ms- Access 97