I need a C++ class that will manipulate files. This class must NOT use MFC or ANY 3rd party libraries or source code optimizers, etc. This must use only the C++ standard library. The class will need to be able to do the following:
1.) Enumerate ALL files in a given directory (including a root of a drive: c:\) and return them as a vector of strings (using std::vector and std::string).
2.) Enumerate ALL subdirectories in a given directory (including a root of a drive: c:\) and return them as a vector of strings (using std::vector and std::string).
3.) Create a directory.
4.) Delete a directory.
5.) Delete a file.
6.) Copy a file.
7.) Move a file.
8.) Compare a file with a filemask. For example, a function bool compare(string filename, string mask) with arguments “[url removed, login to view]? and “file*.tx*?? would return true.
Please note that I will not accept any class that does not use the string and vector type included in the includes "string" and "vector" respectively.
For example, this would be acceptable:
vector<string> DirClass::EnumerateFiles(string path);
This would return a vector filled with the names of all the files in the directory specified in path.
Also, this MUST work with the following file systems: NTFS, FAT, FAT16, FAT32.
The final product will not be accepted until it compiles with my current project. Please leave a comment if you would like for me to send you a list of files I have included in my project.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
The class must compile and run without flaw on Windows 95/98/NT/ME/2K/XP