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
This commit is contained in:
Václav Slavík 2008-10-30 11:22:31 +00:00
parent 90a47090c6
commit b6e2aaace5

View File

@ -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" );