View Full Version : traverse files and modify with C++
03-16-2004, 07:01 AM
I have a program I wrote that inputs a file and midifys it to a certain format. But is there a way to have the program traverse all the files of the specified type and change them? Can I have the files in folders under folders or do they have to be all in the same folder? Either way is fine for me.
03-16-2004, 09:42 AM
Of course you can.
How to do it depends on the platform you're developing for, but any platform must have a way to get directory listings, and then it's just a matter of you writing some code that parses the filenames you get and test the extension, and recursesively searches through subdirectories.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.