Disk Simulation
The software simulates reading and writing to disk. The virtual disk is at size 256 (can be changed). The data of the disk is stored in a file in this folder.
functaions (in order to call them insert the function number): 0. exit the program.
- listALL - return info about all the files in the system and also the data on the disk/
- format - formating the disk (block size and direct entries).
- createFile - creating new file (insert name).
- openFile - open file (insert name).
- closeFile - close file (insert fd).
- writeToFile - writing to a file (insert fd and string).
- readFromFile - read from file (insert fd and numbers of chars to read).
- delFile - delete file from disk (insert name).
How to compile: In VSCode ctrl+shift+b. In linux: g++ main.cpp -o main.
How to run: In VSCode ctrl+f5. In linux: open the terminal in the folder and write "./main" and press enter.
Program files: makefile DISK_SIM_FILE.txt // disk data file main.cpp // main main // Executable file