Project Description
Create a C++ Windows console application that lists file usage. Files will be counted and their sizes totaled.
Files will be grouped by file extension.
Program Interfaces
The program should have the following command-line interface:
fileusage [-switches] [folder]
Where:
• switches
? c (c files)
? + (c++ files)
? j (java files)
? # (c# files)
? w (web files)
? s (summary)
? r (suppress recursive)
? R (reverse order of listing)
? S (sort by size)
? v (verbose)
? h (help)
• folder is root directory.
The files should be listed in alphabetical order of the extension.
Switches
• c: search for c files (.c, .h)
• +: search for c++ files (.cc, .cp, .cpp, .cxx, .c++, .hpp, .hxx)
• j: search for java files (.class, .j, .jad, .jar, .java, .jsp, .ser)
• #: search for C# files (.cs, .vb, .jsl)