C++ Data Files Batch Processing