Guest User

Neel Basu

a guest
Jul 15th, 2008
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. int main(int argc, char *argv[]){
  2.     string x="Neel Basu";
  3.     string y;
  4.     Serialization<int> tst;//Instanciate a Dummy Object
  5.     try{
  6.         Serialization<string>::store(x, "/home/neel/Desktop/name.srl");//Line 51
  7.     }catch(SerializationException ex){
  8.         cout<<ex.getErrMsg()<<endl;
  9.     }
  10.     try{
  11.         y=Serialization<string>::load("/home/neel/Desktop/name.srl");//Line 52
  12.     }catch(SerializationException ex){
  13.         cout<<ex.getErrMsg()<<endl;
  14.     }
  15.   return EXIT_SUCCESS;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment