How the file is handled in the Pascal?

devquora
devquora

Posted On: Feb 22, 2018

 

The file is a sequence of components which are of uniform type. The type of components defines the type of file. The data type of the file is defining as:

type
File-name=file of base-type;

where base type reflects the type of components.

The base type can be anything from the list that includes real, integer, Boolean, enumerated, record, subrange and so on. The variables of file type are declared as:

var
f1, f2, f3....: file-name;

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Pascal Interview Questions

    What do you understand by Pascal?

    This is the first question every interview may ask, so make a good definition in your mind. Pascal is a programming language which supports data structure and the structured programming. It is basical...

    Pascal Interview Questions

    Why Pascal?

    Pascal is a computer programming language which encourages you to enhance your programming skills. It is a language that you may easily learn and practices the programming techniques. It let you use f...

    Pascal Interview Questions

    Why Pascal is named as Pascal?

    Designed in 1968-1969 by Niklaus Wrath, it was first published in the year 1970. It is named after the Blaise Pascal who was French Mathematician and philosopher. He is famous for his invention of cal...