diff --git a/samples/typetest/typetest.cpp b/samples/typetest/typetest.cpp index 4b5906cecd..cbd16a5c03 100644 --- a/samples/typetest/typetest.cpp +++ b/samples/typetest/typetest.cpp @@ -166,6 +166,8 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event)) text_output << str << _T("\n"); std_file_output << str.ToAscii() << "\n"; + std_file_output.close(); + textCtrl.WriteText( _T("\nReading from ifstream:\n") ); wxSTD ifstream std_file_input( "test_std.dat" );