WHAT IS A FILE – Whenever a word is pronounced, a long wide cardboard file is likely to come in front of your eyes.

But in computer language, the meaning of the word file is very different. You will find many different types of paper wrapped in office files.

Files are also sometimes used to keep notes of college subjects together.

A file in a computer language is not like that. It is never confined to thick cartons.

A computer file is always on a floppy disk or hard disk. Any computer file has to be given a specific name.

The computer recognizes a specific file from many files under that name.

This is because there can be many files on one floppy or on the hard disk.


A file for a computer is defined as a number of records or entries arranged in a specific way.

If you want a specific record in such a neatly arranged file, the computer can find it quickly.

Therefore, for effective use, records in any file have to be kept consistently.

When there are many records with the same type of information, the file is very useful.

For example- if there are thousands of names with information like name, address, city, state, zip code, then there is no other tool like the file to handle it.

All of this information is enclosed in a file of these addresses.

For example- Suppose you want to find a specific person with the last name Miles in it. Then you can get the address of this person from those thousands of names in a moment.


If the computer does not have the file as it is used in practice, then all the actions that are required for a regular file are performed for the file of the computer.

You have to open it first to see what is in which file. Then we read the information in it, or write some new information in it, or we modify the existing information.

All that is done is to close the file and save it. This is exactly what is required for a computer file.

For this, open, read, write, append, close, ie open, read, write, add a supplement, close, such instructions have to be written in the program.


Suppose you want to create a file of college admitted students. So the titles have to be fixed first.

For example, you will have titles like name, address, class, group, subject. These titles are called ‘fields’.

The combined information under all these headings is the student’s record! And many such student records are files!

Only all records must be consistent. This is the rise of computer files.


Sequential File

There are generally two types of files. In a way, all the records are arranged one after the other in ascending order. This type is called ‘Sequential file’.

If you want a specific record in a sequential file, then the computer has to check each record in order to reach that record.

Random File

In the second type, the records have no specific order. This type is called a ‘random file’.

In this mode, you can quickly access a specific record.