Hello, I am a total newbie at C programming and I am trying to make a program that renames every file in a directory. I want it to rename every file by deleting the first x amount of characters from each file name. So lets say, I input 3, and it will delete the first 3 characters from every file name in the directory. Is there a way to do this? I am currently stuck at being able to open a file without inputting a file name. I want it to just do it to every file in the directory, one by one until there are no more files to be renamed in that particular directory. Like I said, I am trying to use rename() but that requires the name of the file that is being renamed to be inputted (if that's even a word).
Thank you =]