Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 582 Bytes

File metadata and controls

27 lines (14 loc) · 582 Bytes

AOS Assignment 4

Run Instructions

  • Compile the main.cpp file

    g++ main.cpp

  • Run the program by command

    ./a.out


Assumptions and Workings

  • We Can create only disks and files with unique name in each disk

  • writing in file can be stopped by giving 'stop' in next line

  • Deleting a file from disk also closes the corresponding file descriptor if it is open.

  • We Can store a max of 100 files in the disk and each block in the disk is of size 50KB

  • Read, Write and Append operations will work only if file is opened in corresponding mode.