* Typetest sample fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2918 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
     textCtrl.WriteText( tmp );
     
     textCtrl.WriteText( "\nReading from wxFileInputStream:\n" );
     textCtrl.WriteText( tmp );
     
     textCtrl.WriteText( "\nReading from wxFileInputStream:\n" );
+
+    file_output.OutputStreamBuffer()->FlushBuffer();
     
     wxFileInputStream file_input( "test_wx.dat" );
     
     
     wxFileInputStream file_input( "test_wx.dat" );
     
 
 
   while (!end_line) {
     c = GetC();
 
   while (!end_line) {
     c = GetC();
+    if (LastError() != wxStream_NOERROR)
+      break;
+
     switch (c) {
     case '\n':
       end_line = TRUE;
     switch (c) {
     case '\n':
       end_line = TRUE;
-  
\ No newline at end of file
 
+    i = i*10 + (c - (int)'0');