688_____________________________________________ 12

12.9.2  /      

12.9.2.1  

    C++     (stream), 
     .   -
  ,        . 
      .

 ,   ,   ,   
 ()     FILE,    stdio.h.
     fopen,    
  FILE.        
 .

  fopen:

ttinclude <stdio.h>
FILE *fopen(const char *filename, const char *mode);

 fopen       ,   
 filename,     .  mode   ,
   .    :

             

+              

                  

+                  

w            

w+            

        +  -
  t   ,  ܻ  ,  . .
, rt, rb, r+t, r+b  ..    t,   ܻ  , 
       _fmode,
   fcntl.h.     0_  -
  ( )  0_BINARY   .   -
        14   14.12.1.

  fopen  , ..  
    ,    , -
   .       
       .   14  '.
14.12.2    ,   .

 fopen    ,  . 
    , fopen   
.

 ,      (  ) ,
     fclose(FILE *),    -
 .

12.9.2.2  

     .   
 Test.txt   :