change file name

Hi. I really need to do this. How can I write a program that will change the "spaces"
in the names of the files in a folder and it subfolders to a "_". Thanks in advance.
You can use std::rename to change the filename.
http://en.cppreference.com/w/cpp/io/c/rename
OK. Thanks
Topic archived. No new replies allowed.