Unit 6
Unit 6
FILE MANAGEMENT
A computer file is defined as a medium used for
saving and managing data in the computer system.
File creation: Creating new files and folders for storing data.
File search: Finding files quickly and easily by searching for keywords
or file attributes such as date created or file size.
File sharing: Allowing multiple users to access and edit the same file
simultaneously or share files with other devices on a network.
File deletion: Removing files or folders from the storage device to free
up space.
Logical files do not contain data. They contain a description of records that
are found in one or more physical files.
Logical files that contain more than one format are referred to as multi-
format logical files.
If your program processes a logical file that contains more than one record
format, you can use the _Rformat() function to set the format you wish to
use.
Continuous Allocation
Linked Allocation(Non-contiguous allocation)
Indexed Allocation
Continuous Allocation
Again the file table needs just a single entry for each file, showing the
starting block and the length of the file.
Any free block can be added to the chain. The blocks need not be
continuous.