Commit cc2c4796 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Adding save/load to String example.

parent 656cfd84
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -45,4 +45,13 @@ int main( int argc, char* argv[] )
      cout << "emptyString is empty" << endl;
   if( string1 )
      cout << "string1 is not empty" << endl;

   File myFile;
   myFile.open( "string_save.out", File::out );
   myFile << string1;
   myFile.close();

   myFile.open( "string_save.out", File::in );
   myFile >> string3;
   cout << "string 3 after loading = " << strg << endl;
}