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:
parent
90a47090c6
commit
b6e2aaace5
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user