<HEAD> <TITLE> save_object - save the values of variables in an object into a file </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> save_object - save the values of variables in an object into a file </H1> </center> <p> <b> int save_object( string name, int flag ); </b> <p> Save all values of non-static variables in this object in the file 'name'. valid_write() in the master object determines whether this is allowed. If the optional second argument is 1, then variables that are zero (0) are also saved (normally, they aren't). Object variables and function pointers always save as 0. save_object() returns 1 for success, 0 for failure. <p> See also: <A HREF=restore_object.html> restore_object </A> <p> <HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim> Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/"> Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>