title: renaming, and moving files from a directory using c
body: <p>i am working on a home made little program that is going to make my life a lot easier.</p>
  
  <p>the idea is it looks at a directory, sees the file names in it, removes all certain character combinations and certain characters from the name of the files, then copies the newly named file to a separate folder, and deletes the original.</p>
  
  <p>i can do most of that. what i dont know is how to load the file names into my program i can figure everything else out as i know how to manipulate strings in C and so on.</p>
  
  <p>ive been looking for an easy to implement solution for a few days and found nothing.</p>
  
  <p>tldr:</p>
  
  <p>look at directory
  load all file names
  change all file names based on criteria
  copy files to new directory.</p>
  
  <p>i dont really know how to do step 1, 2, or 4.</p>
  
  <p>i dont expect you guys to write the program for me, even a library and command suggestion would be great if there is one.</p>