You are on page 1of 36

m  

 
  

m 

 
Ê Ê
File Handling is made up of two
different words««. 

Ê
Ê Ê
Ê 

        
       
      

R ï   
   
R      
     
  
R  
    
    
R !      "
  #  

c    
 
    
ï    

c$%cï  &

'
c$      
  
( )$    '
  
 

$%cï
'$%cï 
$%cï
R $%cï**  
    
  
R '$%cï**  

'   
  
R $%cï**   

      
  
     


m    
 !  
m 

 m  
  m   

 m 

    

  
 

  "!  

 

!  !  !  !"!

! "
 

R      
       
        
  
  

Ê  

Ê Ê  
Ê
#   $ % 
R ï      R ï     
c$! ,  
R   %   R   

%  

R c   R c   
R ' +  R ' + 
 
R       R '  
       
 
R $    R $   
 
   
R !     
R '  #   

R %     

R     

R ï        

 
R !   
 Ê  Ê
R    
  
R   )  
       +
'   - 
- 

.+ /    

-+ /  +
  
 
$ #
$  0  1+2 
# **
    #1+2 




.+      
-+  0  +
)+  #  
    
    

Ê
Ê     

Ê 

 

      
  



+
$ #

$ #

3
3
  11 1+2 

#  
# 
42
* #11 1+2
fopen( ) performes 3 main functions :-
:-

.+ $    

-+       
     

)+       
    
 
Ê 
 #11

 #11

1+
1+
   #  

.+  +   
  
   "  
.   
   
-++   
     
    
  
     
)+ +     +
      
 5#   
  
å+ 6+
6+   
    
 
  
% #  
  
ï  #  
 
+6+
   
    
  
  
    
ï  #  
£+ 6+
   
    
  
   #  
c  
 
!  #  
   

R      
    
    +
 
+2
'    
        
 
¦ en we close t e file following 3
t ings occurs««.. 

+     
    

+ c     
c$!-£   

+      
  
!& 
  
' (
R  +**  
R  +**   
R   +
R  " +.+2
R  +2
R +**    
    
R% +**   
    
  
+**  
     
     

R $ 
**  
    
R$
!/%**    
     
  
$
$**    
     
  
+**   
  




  *+2
m     
  # 
     

* 7 3 
 +
8
4+42
2

*9  #99 9+2
*+2
 :*'+
8
 +2
*+2
;

+2
+2
;
m     
   
  
  
* 9 9 
 +
8 
42 
  *<=<2 

8 
 >å 2
 2  
2
;2 
2 
*9ïm c999+2
** /+
8 
9!  9+2 
# +2
; 
  **<=<+
8 
9
9??         9+2  
9@@@9 " "+2 
" +.+2 
9c    = +9+2 

+2 
*+2
; 
+2
;  
)% *%
+
,
 % %
 
,

A %ïc

Related Interests