1 Answer - Sort by: Date | Rating
Direct access is based on a disk model of a file. For direct access, the file is viewed as a numbered sequence of block or records. A direct-access file permits random blocks to be read or written. After block 18 has been read, block 57 could be next and then block 3. There are no restrictions on the order of reading and writing for a direct access file. Direct access files are of great use for intermediate access to large amounts of information.
The file operations must be modified to include the block number as a parameter. It works like "read n", where n is the block number rather than "read next". Similarly, it writes with "write, n" rather that "write next".
An alternative approach retains "read next" and "write next". It adds an operation "position file to n" where n is the block number. Then we would issue the command "position to n" and then "read next".
All operating systems maintain sequential as well as direct access for files. Some systems allow only sequential file access. Others allow only direct access. Some systems require that a file should be defined as sequential or direct when it is created. Such a file can be accessed only in a manner defined at the time of its declaration.
The file operations must be modified to include the block number as a parameter. It works like "read n", where n is the block number rather than "read next". Similarly, it writes with "write, n" rather that "write next".
An alternative approach retains "read next" and "write next". It adds an operation "position file to n" where n is the block number. Then we would issue the command "position to n" and then "read next".
All operating systems maintain sequential as well as direct access for files. Some systems allow only sequential file access. Others allow only direct access. Some systems require that a file should be defined as sequential or direct when it is created. Such a file can be accessed only in a manner defined at the time of its declaration.
0
0
- How Registry Cleaner Helps To Remove Explorer.exe Registry Error Which Occur Most Of The Time When We Open My Com?
- How To Intall New Version Tally 9.0?
- What Is The Excel Menu?
- What Is Unit Testing?
- What Is Software,software Engineering And Software Process?
- How Do You Download Moviemaker?
- What Are The Things To Be Minded On Procedural Design?
- What Are The Different Kind Of Software?
- Can You Change A Document To Pdf Through Acrobat Reader?
- How To Put Songs On My Meez Media Box?
- How To Crack Norton 2007?
- Which Two Pieces Of Information Are Required When Configuring Automatic Updates For Windows XP?
- How Can I Put Music On My Samsung Impression From Windows Media Player?
- Can You Provide Me With A Serial # Or Key Generator For Final-cut Pro Studio?
- Can You Download Windows Xp Programme?
- Can Toy Copy & Paste On Dsi Internet?
- Do I Uninstall 2009 Noarton IS To Install 2010?
- Who Are The Shareholders Of Microsoft And What Is Their Percent?
- Who Are The Sharholders Of Microsoft And What Is Their %?
- I'd Like To Know Who To Join My MUI Package Into My Windows Xp Cd?
- I Want To Know About Antivirus Softwares And Types Of Files Particularly They Saves From Corrupting?
- How To Tally Download?
- If Antivirus Remove Virus From PC And Make It Error Free Then What Registry Cleaner Does?
- Where Can I Find A Comment Card For A Self Catering House?
- How Do We Excel With The Use Of English?
- What Are Different Types Of Access Methods In A File?
- Can You Describe The Some Methods For The Implementation Of File Protection?
- Describe Methods By Which Electrical Signals Convey Information?
- What Is An .mdb File..can I Directly Create A Table In Ms Access Without .mdb File Extension?
- How Direct Memory Access Works?

New Comment - Comments are editable for 5 min.