Working Unix file storage system with Create, Read, Write, Open, Delete and Seek functionality, written in C++
type: type of file to be created. U: User Data File, D: Directory File
name: name of file to create
Create File CREATE U file1
Create Directory CREATE D Dir1
mode: how you want to openn the specified file
I - Input: READ and SEEK
O - Output: WRITE
U - Update: READ, WRITE and SEEK
name: name of file
n: number of bytes to be read. READ can only be performed after OPEN I or OPEN U and must be followed by CLOSE
Writes n bytes of data into an OPENed file
base Indicates starting point of file
-1: beginning of the file
0: current position in the file
1: EOF
offset Indicates the number of bytes from to which file reading pointer should be moved to
Deletes a file provided its name
Closes a file. Can only be used after a file is OPENed or CREATEd