Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char *argv[]){
- string x="Neel Basu";
- string y;
- Serialization<int> tst;//Instanciate a Dummy Object
- try{
- Serialization<string>::store(x, "/home/neel/Desktop/name.srl");//Line 51
- }catch(SerializationException ex){
- cout<<ex.getErrMsg()<<endl;
- }
- try{
- y=Serialization<string>::load("/home/neel/Desktop/name.srl");//Line 52
- }catch(SerializationException ex){
- cout<<ex.getErrMsg()<<endl;
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment