702_____________________________________________ 12

12.9.3.2  

  12.9.3.1    11   11.7.14    -
    endl,     .
    ,    
     .

   ,    -'
,        
Memol  ,   OnClick    :

ftinclude <fstream.h>
#include <iomanip.h>

char s [40] ;

//     
ofstream outfile("Test.dat");

if(!outfile)
{

ShowMessage("   ");

return;

t
// ,                        '

//  
outfile.close (); ,

if stream infile("Test.dat");

iff!infile)
(

ShowMessage("   ");

return;

}

Memol->Clear() ;

while(!infile.eof())
{

infile.getline(s,80) ;

Memol->Lines->Add(s) ;

}

//  

infile.close();

 dec, oct, hex  setbase   ,  -
      , , -
    .     
 .         -
            ,  
   .  setbase   -
  .      
  .      -
        <iomanip.h>.
    . 

int i = 31;

outfile  i  ' '  hex  i  ' '  oct  i  ' ' 

setbase (10)  i  endl;

    31 If 37 31.   31   -
 ,   ,      
  .

       , .. -
     ,    setpre-