textCtrl.WriteText( "Writing to ofstream and wxFileOutputStream:\n" );
ofstream std_file_output( "test_std.dat" );
textCtrl.WriteText( "Writing to ofstream and wxFileOutputStream:\n" );
ofstream std_file_output( "test_std.dat" );
tmp.Printf( _T("Float: %f\n"), f );
textCtrl.WriteText( tmp );
tmp.Printf( _T("Float: %f\n"), f );
textCtrl.WriteText( tmp );
std_file_input >> str;
tmp.Printf( _T("String: %s\n"), str.c_str() );
textCtrl.WriteText( tmp );
std_file_input >> str;
tmp.Printf( _T("String: %s\n"), str.c_str() );
textCtrl.WriteText( tmp );
wxBufferedOutputStream buf_output( file_output );
for (ch = 0; ch < 10; ch++)
buf_output.Write( &ch, 1 );
buf_output.Sync();
wxBufferedOutputStream buf_output( file_output );
for (ch = 0; ch < 10; ch++)
buf_output.Write( &ch, 1 );
buf_output.Sync();
for (ch2 = 0; ch2 < 10; ch2++)
{
file_input.Read( &ch, 1 );
for (ch2 = 0; ch2 < 10; ch2++)
{
file_input.Read( &ch, 1 );
textCtrl.WriteText( "Writing number 0 to 9 to buffered wxFileOutputStream, then\n" );
textCtrl.WriteText( "seeking back to #3 and writing 3:\n\n" );
textCtrl.WriteText( "Writing number 0 to 9 to buffered wxFileOutputStream, then\n" );
textCtrl.WriteText( "seeking back to #3 and writing 3:\n\n" );
wxBufferedOutputStream buf_output2( file_output2 );
for (ch = 0; ch < 10; ch++)
buf_output2.Write( &ch, 1 );
wxBufferedOutputStream buf_output2( file_output2 );
for (ch = 0; ch < 10; ch++)
buf_output2.Write( &ch, 1 );
for (ch2 = 0; ch2 < 10; ch2++)
{
file_input2.Read( &ch, 1 );
for (ch2 = 0; ch2 < 10; ch2++)
{
file_input2.Read( &ch, 1 );
textCtrl.WriteText( "Reading number 0 to 9 from buffered wxFileInputStream, then\n" );
textCtrl.WriteText( "seeking back to #3 and reading 3:\n\n" );
textCtrl.WriteText( "Reading number 0 to 9 from buffered wxFileInputStream, then\n" );
textCtrl.WriteText( "seeking back to #3 and reading 3:\n\n" );
for (ch = 0; ch < 10; ch++)
file_output.Write( &ch, 1 );
for (ch = 0; ch < 10; ch++)
file_output.Write( &ch, 1 );
for (ch2 = 0; ch2 < 11; ch2++)
{
file_input.Read( &ch, 1 );
for (ch2 = 0; ch2 < 11; ch2++)
{
file_input.Read( &ch, 1 );
for (ch2 = 0; ch2 < 11; ch2++)
{
ffile_input.Read( &ch, 1 );
for (ch2 = 0; ch2 < 11; ch2++)
{
ffile_input.Read( &ch, 1 );
wxBufferedInputStream buf_input( file_input );
textCtrl.WriteText( "wxBufferedInputStream.LastError() returns: " );
wxBufferedInputStream buf_input( file_input );
textCtrl.WriteText( "wxBufferedInputStream.LastError() returns: " );