+ textCtrl.WriteText( "\nReading from ifstream:\n" );
+
+ ifstream std_file_input( "test_std.dat" );
+
+ std_file_input >> si;
+ tmp.Printf( "Signed int: %d\n", si );
+ textCtrl.WriteText( tmp );
+
+ std_file_input >> ui;
+ tmp.Printf( "Unsigned int: %u\n", ui );
+ textCtrl.WriteText( tmp );
+
+ std_file_input >> d;
+ tmp.Printf( "Double: %f\n", d );
+ textCtrl.WriteText( tmp );
+
+ std_file_input >> f;
+ tmp.Printf( "Float: %f\n", f );
+ textCtrl.WriteText( tmp );
+
+ std_file_input >> str;
+ tmp.Printf( "String: %s\n", str.c_str() );
+ textCtrl.WriteText( tmp );
+
+ textCtrl.WriteText( "\nReading from wxFileInputStream:\n" );
+
+ wxFileInputStream file_input( "test_wx.dat" );
+
+ file_input >> si;
+ tmp.Printf( "Signed int: %d\n", si );
+ textCtrl.WriteText( tmp );
+
+ file_input >> ui;
+ tmp.Printf( "Unsigned int: %u\n", ui );
+ textCtrl.WriteText( tmp );
+
+ file_input >> d;
+ tmp.Printf( "Double: %f\n", d );
+ textCtrl.WriteText( tmp );
+
+ file_input >> f;
+ tmp.Printf( "Float: %f\n", f );
+ textCtrl.WriteText( tmp );
+
+ file_input >> str;
+ tmp.Printf( "String: %s\n", str.c_str() );
+ textCtrl.WriteText( tmp );