I know how to read and write to files; however, might there be a way to iterate through the list of files in a folder so that I can pass each one as a variable? If possible, may you list a solution that is not UNIX-specific? (I will cross-post this on the Windows forum).
The C++ in itself does not have (had) such functionality. Each OS has a different API that you have to use.
One would define an interface and write implementation for each OS. Then, conditionally compile only the current platform's implementation. The rest of the program uses the interface, blissfully unaware of how things are really done.