Professional Documents
Culture Documents
FILE PROCESSING }
INTRODUCTION
• A file may generally be defined as an organized collection of well-
ordered, well-related, and self-contained information held on a stable
storage medium.
• The information in a file is placed in a specific way and read back in a
specific way and must be kept together as a unit in the same sequence in a
well-organized way.
• The stable storage medium may be a piece of paper, a magnetic or optical
disk, or a magnetic tape or any other medium.
• The information bearing the characteristics mentioned above stored in the
main memory of a computer will not make a file because the main
memory of a computer can hold it only as long as electricity is supplied to
the main memory.
FILE CLASSIFICATION
• Files can be classified into two basic types:
• A program file is a file that contains a sequential set of instructions in a
computer language that can direct a computer in the performance of some
specific task.
• A data file is a collection of records about closely-related or similar entities.
• Files should possess all the features stated in the generalized definition.
• A record is an ordered collection of the attribute values of an entity.
• An attribute is any characteristic or feature of an entity that tells something
about the entity, where an entity is anything with a physical or conceptual
existence.
• A fact is anything that is true about an entity. To collect facts about an entity,
we first decide on some attributes of the entity and procure facts on those
attributes.
FILE ORGANIZATION
• A file is typically considered a data file.
• The task of file processing is the set of activities performed
on the records of a file to generate some desired information.
• Basically, file organization can be classified into three
categories:
• Sequential File Organization
• Indexed File Organization
• Hashed/Relative/Random File Organization
FILE ORGANIZATION
• A file is typically considered a data file.
• The task of file processing is the set of activities performed
on the records of a file to generate some desired information.
• Basically, file organization can be classified into three
categories:
• Sequential File Organization
• Indexed File Organization
• Hashed/Relative/Random File Organization
SEQUENTIAL FILE ORGANIZATION