Académique Documents
Professionnel Documents
Culture Documents
INTERFACE
K ARUNKUMAR
File Concept
File Concept
Types:
Data
numeric
character
binary
Program
File Attributes
File Attributes
File Operations
Access methods
File, store information when it is used
this information must be accessed and
read in to computer memory the
information in the file can be accessed in
several ways.
1. sequential access
2. Direct access
3. Indexed file
Access methods
sequential access:
Sequential access is the simplest method . Information in the
file is sequentially accessed . One record of after another .
2. This mode of access is by far the most common : for example
editors and compilers usually access files in this fashion.
3. Read and writes makes up the bulk of the operations on the
file. A read operation-read next-reads the next portion of the
file and automatically advances a file pointer , which tracks
the I/O location.
4. Similarly the write operation write-next- appends to the end
of the file and advances to the end of the newly written
material.
1.
Direct access
Direct Access:
1.
Indexed file
Indexed file:
To achieve the flexibility , structure is needed that employs
multiple indexes' . In general indexed file, the concept of
sequential and a single key are abandoned.
Records are only accessed through their indexes. Records of
variable lengths can be used in the access.
Two types of indexes are used. An exhaustive index
contains on entry for every record in the main file. An index
is itself organized as a sequential file for ease of searching.
A partial index contains entries to record where the field of
interest exists.
sequential access
File-System Mounting
File-System Mounting
Mount Point
Protection
Types of access
Read
Write
Execute
Append
Delete
List