Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef HAVE_CONFIG_H
- #include <config.h>
- #endif
- #include <iostream>
- #include <cstdlib>
- #include <string>
- #include "serialization.h"
- using std::cout;
- using std::endl;
- using std::string;
- int main(int argc, char *argv[]){
- string x="Neel Basu";
- string y;
- 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
Advertisement