    C++___________________________645

1.7.14     ()  
  ()

    ()     ()  
  ,     cout  cin,  
   ,     (.  12 -
 12.9.3.1).         , 
>   outfile       infile 
 .      

ttinclude <fstream.h>

//   outfile,    "Test.dat"

ofstream outfile("Test.dat");

if(!outfile)
t
ShowMessage("   ");

return;

(

...   //    

outfile.close();    //  

//   infile,    "Test.dat"

if stream infile("Test.dat");

if(!infile)
(
ShowMessage("   ");

return;

I

...   //    
infile.close();    //  

   .   12   12.9.3.1.
           -
, ..   .      -
   ,       -
.         
   ,    , 
      ,     -
 ,        
,      -   -
 ,    ,   ,
          
 .

    ,    , ,
   .      
. , 

outfile  "!";

    !. 

int i = 25;

outfile  i;

    25>>.

        , ..  -
.        , -
, 