Computer Files2
Computer Files2
1. Computer file is defined as the smallest meaningful unit of data representation within a
computer.
2. A computer file is a block of arbitrary information, or resource for storing information, which
is available to a computer program and usually on some kind of durable storage.
File Functions:
File Terms
1. Record: A record is a collection of related fields. In computer science, a record (also called
strict or compound data) is a basic data structure.
2. Field: Field is a single piece of information about and object. A is also defined as a space
that holds specific parts of data from a set or a record. Examples of fields are NAME,
ADDRESS, QUANTITY, AGE, etc.
4. Data item: Data item is the actual data stored in the field
Each data element consist only a single item. These items will have one of the three basic types:
numeric, alphabetic and alpha-numeric.
Numeric data: Data consisting of digits and not letters of the alphabet or special characters.
Alphabetic data: Data consisting of letters and not digits or special characters.
File Organization
The term "file organization" refers to the way in which data are stored in a file and,
consequently, the method(s) by which it can be accessed.
a. Block: A block is the physical unit of transfer between the backing store and the main
memory.
b. Bucket: A bucket is the logical unit of transfer between the backing store and main memory.
c. Hit: In processing a record that is required is called a hit.
Serial files are stored in chronological order, that is, as each record is received it is stored in the
next available storage position. In general it is only used on a serial medium such as magnetic
tape.
Sequential files are files whose records are sorted and stored in an ascending or descending on a
particular key field.
An index is an alphabetical list of names, subjects, etc., with references to the places where they
occur. Indexed Sequential file organization is logically the same as sequential organization, but
an index is built indicating the block containing the record with a given value for the Key field.
A randomly organized file contains records arranged physically without regard to the sequence
of the primary key. Records are loaded to disk by establishing a direct relationship between the
Key of the record and its address on the file, normally by use of a formula (or algorithm) that
converts the primary Key to a physical disk address. This relationship is also used for retrieval
a. Serially
b. Sequentially and
c. Randomly
File Classification
B. Master Files: Master file are permanent file kept up-to-date by applying the transactions that
have occur during the operation of the business. E.g. customer ledgers, student database.
C. Reference Files: Reference files are type of master file containing referential data. They
contain data that are necessary to support data processing e.g. price lists, dictionary files, present
value schedules, table of inventory codes or categories, lookup tables
2. How many records are processed each time the file is updated
4. Nature of content
5. Organization method
6. Storage medium