Class: SSS 2
Term: 2nd Term
Subject: Computer Science
Week 3
Topic: Computer Files
A computer file is a resource for storing information which is available to a computer program and is usually based on some kind of durable storage. Computer file can be considered as the modern counter part of paper documents which are traditionally kept in offices and
libraries. A file is “durable” in the sense that it remains available for other programs to use after the program that created it has finished executing. A computer file is a block of arbitrary information, or resource for storing information, which is available to a computer program and is usually based on some kind of durable storage. Computer files can be considered as the modern counterpart of paper documents which traditionally are kept in offices and libraries’ files, and this is the source of the term.
Files are collection of data in a permanent storage media such as hard drive, CD or DVD ROM, floppy disk, memory card, flash drive etc.
A record is a valve that contains other values typically in fixed numbers and typically indexed by names. The elements of records are usually called Fields or Members.
A data item is an atomic state of a particular object concerning a specific property at a certain time. Data item is identified by object (O), property is a function of O, P and (O,P,T) values are represented by symbols like numbers, text, images, sounds, video and others.
Data item refer to a single unit of value e.g. Roll number, Name, Date of Birth, Age e.t.c
There are two types of data items They are
Types of files organization
File organization refers to the way records are physically arranged on a storage device. Information in a computer file can consist of smaller packets of information (often called “records” or “lines”) that are individually different but share some trait in common. The way information is grouped into file is entirely up to the person designing the file. Most computer files are used by computer programs. These programs create, modify and delete files for their own use on an as – needed basis.
Method of Accessing files
Types of Computer Files
Using my computer as an example, computer file types can be characterized in a few major groups:
files are not necessary, but in some cases, they may be critically important. This needs to be documented in the Litigation Response Plan.
FUNCTIONS OF FILE
File System
BYTE – ORIENTED FILE SYSTEM
In this type of file – system, a file is considered as a sequence of bytes, the operating system supplies routines that can read/write a specific number of bytes. To have any structure in a file, system and application programs accessing the file must adopt some convention that has to be respected by all programs.
RECORD – ORIENTED FILE SYSTEM
Here a file is a sequence of records of the same type. A record is a sequence of data bytes together with control information about the record’s size and some other properties. This structure is imposed by consistently interpreting the data and control information kept in the records, by the system routine you call in order to perform file input or output.
ADVANTAGES OF COMPUTERIZED FILES
LIMITATIONS OF COMPUTERIZED FILES
ASSESSMENT
ANSWERS
© Lesson Notes All Rights Reserved 2023