Pages

Tuesday, December 21, 2010

MCA FOP Assignment - 6

Subject    : Fundamentals of Programming
Subject Code    : 610001
Department    : MCA
Assignment Date    : 11th Dec, 2010
Submission Date    : 20th Dec, 2010


1.Explain following functions with syntax and Example.
(a) fopen()                                      
(b) fclose()                                 
(c) fcloseall()
(d) fseek()                                       
(e) ftell()                                    
(f) feof()
(g) fputs()                                       
(h) fgets()                                   
(i) fread()
(j) fwrite()                                       
(k) fprintf()                                
(l) fscanf()
(m) ferror()                                     
(n) remove()                              
(o) rename()
2.Explain different File Opening modes used with the fopen () function.
3.What is stream? What is the difference between a text-mode stream and a Binary mode stream?
4.What are the three general methods of File Access?
5.What is the difference between a Binary File and Text File in C.