Can I get the file names of the current directory using c++?
I need the filenames in order to covert their format (images).
If not, may be I just write a bash script to do that.
thx!
Can I get the file names of the current directory using c++?
I need the filenames in order to covert their format (images).
If not, may be I just write a bash script to do that.
thx!
Sent from my iPadŽ
no, linux, g++
getcwd?
opendir / readdir / closedir - to read all the filenames in a directory
stat() to tell you about each entry - like whether it's a file or a directory