Question: Use C/C++ to simulate a file directory system to support following commands: login: user login dir: output all subdirectories and files under current directory mkdir:

Use C/C++ to simulate a file directory system to support following commands:

login: user login dir: output all subdirectories and files under current directory mkdir:

create a new directory cd: change directory create:

create a new file delete: delete a file read: read a file write: write a file

2) implements read/write protection.

Your program should allow the user to type the above commands in a terminal after login, and you may also let the user directly input file content in the terminal.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!