Implement a portable file system with java language. I do have some requirements.Implement a Portable File System (PFS). Allocate a file. Move files from the Windows file system into your file. You should have your own directory structure, allocation table, etc. inside your file. Move files back out of your file to the Windows file system.
When your program is running it should somehow accept the following commands:
open PFSfile
put myfile get myfile
rm myfile?dir?putr myfile "Remarks"
kill PFSfile quit
Allocate a new 10 KByte "PFS" file if it does not already exist. If it does exist, begin using it for further commands.
Copy the Windows file "myfile" into your PFS file.
Extract file "myfile" from your PFS file and copy it to the current Windows directory.
Delete "myfile" from your PFS file. List the files in your PFS file.
Append remarks to the directory entry for myfile in your PFS file.
Delete the PFSfile from the Windows file system. Exit PFS.