ABSTRACT

The output of a program may be the input of another program. In such cases, it is convenient to store the output of the first program to some external device so that it is available even after the end of the job. Subsequently, the same can be read by the second program from the same external device knowing the arrangement of the data on the output device. A record is a collection of related objects. For example, an employee record may consist of a name of a person, his address, age, sex, salary, date of joining and date of retirement. A file is a collection of records. For example, a collection of employees’ records containing information about all the employees of an institution makes an employee file. Unformatted records are processor dependent; they are read or written by an unformatted read or write Fortran statement.