From b6e2aaace5697608ea6d8617a5ca45cdebe7fe37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 30 Oct 2008 11:22:31 +0000 Subject: [PATCH] must close output file before reading back from it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/typetest/typetest.cpp | 2 ++ 1 file changed, 2 insertions(+) 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" );