is it possible to write objects directly to files (like it is possible in Java) or do you need to write all the objects elements, one by one, to the file?
is it possible to write objects directly to files (like it is possible in Java) or do you need to write all the objects elements, one by one, to the file?
I use BorlandBuilder 5
yes it is possible. But it requires a little work. You have to overload operator << and operator >> for your class to write to ofstream and read from ifstream.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
thanks for the answer!
now it's back to the books...........
I use BorlandBuilder 5