File Management
File Management
File Management
File
• A file is a named collection of related
information that is recorded on secondary
storage
File Attributes
• Name
• Identifier
• Type
• Location
• Size
• Protection
• Time, date and user identification
File operations
• Create • Delete
• Open • Truncate
• Write • Close
• Read • Append
• Reposition or seek • Rename
File Types
Access Methods
• There are three ways to access a file into a computer
system:
– Sequential-Access
– Direct Access
– Index sequential Method
Sequential Access
• It is the simplest access method. Information in the
file is processed in order, one record after the other.
This mode of access is by far the most common; for
example, editor and compiler usually access the file
in this fashion.
Key Points
• Data is accessed one record right after another record in an
order.
• When we use read command, it move ahead pointer by one
• When we use write command, it will allocate memory and
move the pointer to the end of the file
• Such a method is reasonable for tape.
Advantages of Sequential Access Method :