How do I loop through all files in a folder using C?

前端 未结 6 981
渐次进展
渐次进展 2020-12-06 06:00

I want to remove a particular substring from all the file names in a directory:

-- like \'XYZ.com\' from \'Futurama s1e20 - [XYZ.com].avi\' --

6条回答
  •  抹茶落季
    2020-12-06 06:40

    You may use FTS(3) to loop through all files in a folder using C:

    http://keramida.wordpress.com/2009/07/05/fts3-or-avoiding-to-reinvent-the-wheel/

提交回复
热议问题