FILE HANDLING
10.1.1 File Pointers It is not enough to just display the data on the screen. We need to save it because memory is volatile and its contents would be lost once program terminated, so if we need some data again there are two ways one is retype via keyboard to assign it to particular variable, and other is regenerate it via programmatically both options are tedious. At such time it becomes necessary to store the data in a manner that can be later retrieved and displayed either in part or in whole. This medium is usually a ''file'' on the disk. Introduction to file Until now we have been using the functions such as scanf,printf, getch, putch etc to read and write data on the variable and arrays for storing data inside the programs. But this approach poses the following programs. 1. The data is lost when program terminated or variable goes out of scope. 2. Difficulty to use large volume of data. We can overcome these problems by storing data on secondary devices such as Har...