This program is a listing of any directory contained in the current directory.
This program prompts the user for his/her name and the name of the directory
which is within C drive(You can change it in the program to other drives). It
then prints a listing of that directory. The listing contains the following
information:The full path name of the directory,and then includes the file name,
length, and last modified date, and a read/write code for each file. The read/
write code will be r if the file is readable and w if the file is writeable, in
that order.“--” is to indicate that file is not readable or not writeable.
Eg: Input by the user:
Output: