A buffer is a reserved section of primary storage used for storing temporary data begin written to or read from a file.The programmer specifies the buffer number of a file,and it is used by the program to recognize and identify the file that is attempting to be manipulated.The buffer number of the file must be known by the programmer when attempting to write data to or read data from the file.