| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
C++ SAVING TO A FILE
Please help me, I am trying to save a CLASS to a file so as that I can look for given records, then retrieve them later to edit them. I REALLY DON'T KNOW WHERE TO START!! Thanks ![]() |
|
#2
|
|||
|
|||
|
Quote:
i.e. Start from saving individual properties to the file. myclass :: SaveToFile (string file) { open file; printf (file, property1); printf (file, property2); .... } myclass :: LoadFromFile (string file) { open file; read (file, property1); .... } ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > How Do I Save A Class In A File And Search The File |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|